]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: vlan: fix possible null ptr derefs on port init and deinit
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Wed, 30 Sep 2015 18:16:54 +0000 (20:16 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Oct 2015 01:24:05 +0000 (18:24 -0700)
commit4a9e045e2799e580cdb20d268b83199dce82362c
tree1383a9017adcfb96767f49cd36f3adfc4357e188
parentab4da209907327512d8540f0f6fc2fad4a3e1931
bridge: vlan: fix possible null ptr derefs on port init and deinit

When a new port is being added we need to make vlgrp available after
rhashtable has been initialized and when removing a port we need to
flush the vlans and free the resources after we're sure noone can use
the port, i.e. after it's removed from the port list and synchronize_rcu
is executed.

Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_if.c
net/bridge/br_vlan.c