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)
commit83f6a740b4e52f88e312223df2fc94016a208618
tree7cb24cc5a3a5779fe3dd9fbba3351cac19062b1f
parent168d40ee3d147ae20860e7916bd79b636cbe8fd5
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