diff options
| author | Eric Dumazet <edumazet@google.com> | 2024-02-28 16:54:32 +0300 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2024-03-01 11:42:32 +0300 |
| commit | fca34cc075996767fbbdb6252be9ddd21c34c920 (patch) | |
| tree | fc5017e34755b12dc2d0af178b763469575b1ac6 /include | |
| parent | ddea75d344dd87cf7f5d79efb1aab80b493f8393 (diff) | |
| download | linux-fca34cc075996767fbbdb6252be9ddd21c34c920.tar.xz | |
ipv6: annotate data-races around idev->cnf.ignore_routes_with_linkdown
idev->cnf.ignore_routes_with_linkdown can be used without any locks,
add appropriate annotations.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
| -rw-r--r-- | include/net/addrconf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/addrconf.h b/include/net/addrconf.h index 30d6f1e84e46..9d06eb945509 100644 --- a/include/net/addrconf.h +++ b/include/net/addrconf.h @@ -417,7 +417,7 @@ static inline bool ip6_ignore_linkdown(const struct net_device *dev) if (unlikely(!idev)) return true; - return !!idev->cnf.ignore_routes_with_linkdown; + return !!READ_ONCE(idev->cnf.ignore_routes_with_linkdown); } void inet6_ifa_finish_destroy(struct inet6_ifaddr *ifp); |
