mirror of
https://github.com/torvalds/linux.git
synced 2024-10-30 00:32:38 +00:00
bridge: Use hlist_for_each_entry_rcu() in br_multicast_add_router()
Noticed by Michał Mirosław. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
87b6cf51ac
commit
ff65e8275f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user