diff options
Diffstat (limited to 'net/bridge/br_multicast.c')
-rw-r--r-- | net/bridge/br_multicast.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c index 02da21d771c9..45e7f4173bba 100644 --- a/net/bridge/br_multicast.c +++ b/net/bridge/br_multicast.c | |||
@@ -2031,7 +2031,8 @@ static void br_multicast_start_querier(struct net_bridge *br, | |||
2031 | 2031 | ||
2032 | __br_multicast_open(br, query); | 2032 | __br_multicast_open(br, query); |
2033 | 2033 | ||
2034 | list_for_each_entry(port, &br->port_list, list) { | 2034 | rcu_read_lock(); |
2035 | list_for_each_entry_rcu(port, &br->port_list, list) { | ||
2035 | if (port->state == BR_STATE_DISABLED || | 2036 | if (port->state == BR_STATE_DISABLED || |
2036 | port->state == BR_STATE_BLOCKING) | 2037 | port->state == BR_STATE_BLOCKING) |
2037 | continue; | 2038 | continue; |
@@ -2043,6 +2044,7 @@ static void br_multicast_start_querier(struct net_bridge *br, | |||
2043 | br_multicast_enable(&port->ip6_own_query); | 2044 | br_multicast_enable(&port->ip6_own_query); |
2044 | #endif | 2045 | #endif |
2045 | } | 2046 | } |
2047 | rcu_read_unlock(); | ||
2046 | } | 2048 | } |
2047 | 2049 | ||
2048 | int br_multicast_toggle(struct net_bridge *br, unsigned long val) | 2050 | int br_multicast_toggle(struct net_bridge *br, unsigned long val) |