aboutsummaryrefslogtreecommitdiff
path: root/net/can
diff options
context:
space:
mode:
authorGravatar Eric Dumazet <edumazet@google.com> 2023-08-31 13:52:09 +0000
committerGravatar David S. Miller <davem@davemloft.net> 2023-09-01 07:27:33 +0100
commit5e6300e7b3a4ab5b72a82079753868e91fbf9efc (patch)
treec0376ce7b3667e6187785217db48aec2fd17d29a /net/can
parentnet: use sk_forward_alloc_get() in sk_get_meminfo() (diff)
downloadlinux-5e6300e7b3a4ab5b72a82079753868e91fbf9efc.tar.gz
linux-5e6300e7b3a4ab5b72a82079753868e91fbf9efc.tar.bz2
linux-5e6300e7b3a4ab5b72a82079753868e91fbf9efc.zip
net: annotate data-races around sk->sk_forward_alloc
Every time sk->sk_forward_alloc is read locklessly, add a READ_ONCE(). Add sk_forward_alloc_add() helper to centralize updates, to reduce number of WRITE_ONCE(). Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/can')
0 files changed, 0 insertions, 0 deletions