summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/aosp.h
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2023-08-19 06:06:46 +0200
committerDavid S. Miller <davem@davemloft.net>2023-08-21 08:41:57 +0200
commitbc1fb82ae11753c5dec53c667a055dc37796dbd2 (patch)
treebc3c0b2eb87f188a8542759a0970754c6f4ad8e8 /net/bluetooth/aosp.h
parentIPv4: add extack info for IPv4 address add/delete (diff)
downloadlinux-bc1fb82ae11753c5dec53c667a055dc37796dbd2.tar.xz
linux-bc1fb82ae11753c5dec53c667a055dc37796dbd2.zip
net: annotate data-races around sk->sk_lingertime
sk_getsockopt() runs locklessly. This means sk->sk_lingertime can be read while other threads are changing its value. Other reads also happen without socket lock being held, and must be annotated. Remove preprocessor logic using BITS_PER_LONG, compilers are smart enough to figure this by themselves. v2: fixed a clang W=1 (-Wtautological-constant-out-of-range-compare) warning (Jakub) 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/bluetooth/aosp.h')
0 files changed, 0 insertions, 0 deletions