diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2010-03-05 22:07:39 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-03-08 00:31:12 +0100 |
commit | 49f5fcfd4ac3df24aa66520e1c5f37db5dfa8c10 (patch) | |
tree | 7fad39a6ebffeec4c7aa3a217c3389454ed4e909 /net | |
parent | ipv6: Optmize translation between IPV6_PREFER_SRC_xxx and RT6_LOOKUP_F_xxx. (diff) | |
download | linux-49f5fcfd4ac3df24aa66520e1c5f37db5dfa8c10.tar.xz linux-49f5fcfd4ac3df24aa66520e1c5f37db5dfa8c10.zip |
bridge: Use RCU list primitive in __br_mdb_ip_get
As Paul McKenney correctly pointed out, __br_mdb_ip_get needs
to use the RCU list walking primitive in order to work correctly
on platforms where data-dependency ordering is not guaranteed.
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/bridge/br_multicast.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c index 8b258872eba8..a1ffe1582c9a 100644 --- a/net/bridge/br_multicast.c +++ b/net/bridge/br_multicast.c @@ -38,7 +38,7 @@ static struct net_bridge_mdb_entry *__br_mdb_ip_get( struct net_bridge_mdb_entry *mp; struct hlist_node *p; - hlist_for_each_entry(mp, p, &mdb->mhash[hash], hlist[mdb->ver]) { + hlist_for_each_entry_rcu(mp, p, &mdb->mhash[hash], hlist[mdb->ver]) { if (dst == mp->addr) return mp; } |