提交 ff65e827 编写于 作者: D David S. Miller

bridge: Use hlist_for_each_entry_rcu() in br_multicast_add_router()

Noticed by Michał Mirosław.
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 87b6cf51
...@@ -1045,7 +1045,7 @@ static void br_multicast_add_router(struct net_bridge *br, ...@@ -1045,7 +1045,7 @@ static void br_multicast_add_router(struct net_bridge *br,
struct net_bridge_port *p; struct net_bridge_port *p;
struct hlist_node *n, *last = NULL; 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) { if ((unsigned long) port >= (unsigned long) p) {
hlist_add_before_rcu(n, &port->rlist); hlist_add_before_rcu(n, &port->rlist);
return; return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册