Return-Path: From: Sven Eckelmann Subject: [RFC] batman-adv: make mc_forwarding atomic Date: Tue, 8 Feb 2022 08:19:42 +0100 Message-Id: <20220208071942.7884-1-sven@narfation.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: To: linus.luessing@c0d3.blue Cc: b.a.t.m.a.n@lists.open-mesh.org From: Eric Dumazet This fixes minor data-races in ip6_mc_input() and batadv_mcast_mla_rtr_flags_softif_get_ipv6() Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- net-next commit 145c7a793838 ("ipv6: make mc_forwarding atomic") This still needs compat code - does anyone have ideas? net/batman-adv/multicast.c | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/net/batman-adv/multicast.c b/net/batman-adv/multicast.c index f4004cf0ff6f..9f311fddfaf9 100644 --- a/net/batman-adv/multicast.c +++ b/net/batman-adv/multicast.c @@ -134,7 +134,7 @@ static u8 batadv_mcast_mla_rtr_flags_softif_get_ipv6(= struct net_device *dev) { struct inet6_dev *in6_dev =3D __in6_dev_get(dev); =20 - if (in6_dev && in6_dev->cnf.mc_forwarding) + if (in6_dev && atomic_read(&in6_dev->cnf.mc_forwarding)) return BATADV_NO_FLAGS; else return BATADV_MCAST_WANT_NO_RTR6; --=20 2.30.2