diff options
author | Eric Dumazet <edumazet@google.com> | 2022-02-04 21:15:45 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-02-05 16:20:34 +0100 |
commit | 145c7a793838add5e004e7d49a67654dc7eba147 (patch) | |
tree | f3b1ad3a89c446cccd1184756d0f9f527b32489d /include | |
parent | net: dsa: realtek: don't default Kconfigs to y (diff) | |
download | linux-145c7a793838add5e004e7d49a67654dc7eba147.tar.xz linux-145c7a793838add5e004e7d49a67654dc7eba147.zip |
ipv6: make mc_forwarding atomic
This fixes minor data-races in ip6_mc_input() and
batadv_mcast_mla_rtr_flags_softif_get_ipv6()
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/ipv6.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/ipv6.h b/include/linux/ipv6.h index 1e0f8a31f3de..16870f86c74d 100644 --- a/include/linux/ipv6.h +++ b/include/linux/ipv6.h @@ -51,7 +51,7 @@ struct ipv6_devconf { __s32 use_optimistic; #endif #ifdef CONFIG_IPV6_MROUTE - __s32 mc_forwarding; + atomic_t mc_forwarding; #endif __s32 disable_ipv6; __s32 drop_unicast_in_l2_multicast; |