]> git.baikalelectronics.ru Git - kernel.git/commit
net: bridge: multicast: __grp_src_block_incl can modify pg
authorNikolay Aleksandrov <nikolay@nvidia.com>
Wed, 20 Jan 2021 14:51:52 +0000 (16:51 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 23 Jan 2021 03:39:56 +0000 (19:39 -0800)
commitac82794a7d72ce3d792ee0787fd6634b255e9492
tree62e7199a0e01906cd2fc1966a6d2b69520231da1
parentba4fa7bec0b70dfe05fe77cfd2eca9eccd0c2b17
net: bridge: multicast: __grp_src_block_incl can modify pg

Prepare __grp_src_block_incl() for being able to cause a notification
due to changes. Currently it cannot happen, but EHT would change that
since we'll be deleting sources immediately. Make sure that if the pg is
deleted we don't return true as that would cause the caller to access
freed pg. This patch shouldn't cause any functional change.

Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/bridge/br_multicast.c