Message ID | 20210719125641.317916-1-razor@blackwall.org |
---|---|
State | Superseded |
Headers | show |
Series | [4.19] net: bridge: multicast: fix PIM hello router port marking race | expand |
diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c index 6a362da211e1..3504c3acd38f 100644 --- a/net/bridge/br_multicast.c +++ b/net/bridge/br_multicast.c @@ -1791,7 +1791,9 @@ static void br_multicast_pim(struct net_bridge *br, pim_hdr_type(pimhdr) != PIM_TYPE_HELLO) return; + spin_lock(&br->multicast_lock); br_multicast_mark_router(br, port); + spin_unlock(&br->multicast_lock); } static int br_multicast_ipv4_rcv(struct net_bridge *br,