mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
ipv6: annotate data-races in ip6_multipath_hash_{policy,fields}()
Add missing READ_ONCE() when reading sysctl values. Signed-off-by: Eric Dumazet <edumazet@google.com> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/20260115094141.3124990-5-edumazet@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
3681282530
commit
03e9d91dd6
+2
-2
@@ -1014,11 +1014,11 @@ static inline int ip6_default_np_autolabel(const struct net *net)
|
||||
#if IS_ENABLED(CONFIG_IPV6)
|
||||
static inline int ip6_multipath_hash_policy(const struct net *net)
|
||||
{
|
||||
return net->ipv6.sysctl.multipath_hash_policy;
|
||||
return READ_ONCE(net->ipv6.sysctl.multipath_hash_policy);
|
||||
}
|
||||
static inline u32 ip6_multipath_hash_fields(const struct net *net)
|
||||
{
|
||||
return net->ipv6.sysctl.multipath_hash_fields;
|
||||
return READ_ONCE(net->ipv6.sysctl.multipath_hash_fields);
|
||||
}
|
||||
#else
|
||||
static inline int ip6_multipath_hash_policy(const struct net *net)
|
||||
|
||||
Reference in New Issue
Block a user