|
@@ -2152,7 +2152,8 @@ static void br_multicast_start_querier(struct net_bridge *br,
|
|
|
|
|
|
|
|
__br_multicast_open(br, query);
|
|
__br_multicast_open(br, query);
|
|
|
|
|
|
|
|
- list_for_each_entry(port, &br->port_list, list) {
|
|
|
|
|
|
|
+ rcu_read_lock();
|
|
|
|
|
+ list_for_each_entry_rcu(port, &br->port_list, list) {
|
|
|
if (port->state == BR_STATE_DISABLED ||
|
|
if (port->state == BR_STATE_DISABLED ||
|
|
|
port->state == BR_STATE_BLOCKING)
|
|
port->state == BR_STATE_BLOCKING)
|
|
|
continue;
|
|
continue;
|
|
@@ -2164,6 +2165,7 @@ static void br_multicast_start_querier(struct net_bridge *br,
|
|
|
br_multicast_enable(&port->ip6_own_query);
|
|
br_multicast_enable(&port->ip6_own_query);
|
|
|
#endif
|
|
#endif
|
|
|
}
|
|
}
|
|
|
|
|
+ rcu_read_unlock();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
int br_multicast_toggle(struct net_bridge *br, unsigned long val)
|
|
int br_multicast_toggle(struct net_bridge *br, unsigned long val)
|