From: David S. Miller Date: Tue, 27 Apr 2010 23:26:49 +0000 (-0700) Subject: bridge: Use hlist_for_each_entry_rcu() in br_multicast_add_router() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ff65e8275f6c96a5eda57493bd84c4555decf7b3;p=linux-beck.git bridge: Use hlist_for_each_entry_rcu() in br_multicast_add_router() Noticed by Michał Mirosław. Signed-off-by: David S. Miller --- diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c index fcba313f1894..e29c9b738796 100644 --- a/net/bridge/br_multicast.c +++ b/net/bridge/br_multicast.c @@ -1045,7 +1045,7 @@ static void br_multicast_add_router(struct net_bridge *br, struct net_bridge_port *p; struct hlist_node *n, *last = NULL; - hlist_for_each_entry(p, n, &br->router_list, rlist) { + hlist_for_each_entry_rcu(p, n, &br->router_list, rlist) { if ((unsigned long) port >= (unsigned long) p) { hlist_add_before_rcu(n, &port->rlist); return;