]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: Correctly unregister MDB rtnetlink handlers
authorVlad Yasevich <vyasevic@redhat.com>
Wed, 2 Jan 2013 09:41:25 +0000 (09:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Jan 2013 09:56:11 +0000 (01:56 -0800)
commitcc53faf9638df88daafd4053ec546565092a5340
tree45f31e75a2e5913eb7de444c7ebe6dc13dcd9859
parentf2672fc4378e47a7a07e71748d8ba5e8f22936ba
bridge: Correctly unregister MDB rtnetlink handlers

Commit 6cc129be140b3893ccbe021c66f2482d51053402:
    bridge: Do not unregister all PF_BRIDGE rtnl operations
introduced a bug where a removal of a single bridge from a
multi-bridge system would remove MDB netlink handlers.
The handlers should only be removed once all bridges are gone, but
since we don't keep track of the number of bridge interfaces, it's
simpler to do it when the bridge module is unloaded.  To make it
consistent, move the registration code into module initialization
code path.

Signed-off-by: Vlad Yasevich <vyasevic@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_multicast.c
net/bridge/br_netlink.c