bridge: Fix RCU race in br_multicast_stop
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 5 Mar 2010 21:03:35 +0000 (21:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 7 Mar 2010 23:31:12 +0000 (15:31 -0800)
commit10cc2b50eb4b01ca4dc014af2094d28b4ebe20d7
tree3e9278a4dda2bd8ccb7e37ddf14344444834c0f7
parent49f5fcfd4ac3df24aa66520e1c5f37db5dfa8c10
bridge: Fix RCU race in br_multicast_stop

Thanks to Paul McKenny for pointing out that it is incorrect to use
synchronize_rcu_bh to ensure that pending callbacks have completed.
Instead we should use rcu_barrier_bh.

Reported-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_multicast.c