]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: multicast port group RCU fix
authorstephen hemminger <shemminger@vyatta.com>
Tue, 27 Apr 2010 15:01:06 +0000 (15:01 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Apr 2010 01:13:54 +0000 (18:13 -0700)
commit9137cdac9b5dba19e4200c5a0b3e64de040a7ba7
tree7cb24cc5a3a5779fe3dd9fbba3351cac19062b1f
parentb64aab8660f12b14e7fab17944f3628c7839fba6
bridge: multicast port group RCU fix

The recently introduced bridge mulitcast port group list was only
partially using RCU correctly. It was missing rcu_dereference()
and missing the necessary barrier on deletion.

The code should have used one of the standard list methods (list or hlist)
instead of open coding a RCU based link list.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_forward.c
net/bridge/br_multicast.c