Skip to content

Commit e6d12bd

Browse files
edumazetdavem330
authored andcommitted
net: add missing READ_ONCE(sk->sk_rcvlowat) annotation
In a prior commit, I forgot to change sk_getsockopt() when reading sk->sk_rcvlowat locklessly. Fixes: eac6640 ("net: annotate sk->sk_rcvlowat lockless reads") Signed-off-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent ea7f45e commit e6d12bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/core/sock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1730,7 +1730,7 @@ int sk_getsockopt(struct sock *sk, int level, int optname,
17301730
break;
17311731

17321732
case SO_RCVLOWAT:
1733-
v.val = sk->sk_rcvlowat;
1733+
v.val = READ_ONCE(sk->sk_rcvlowat);
17341734
break;
17351735

17361736
case SO_SNDLOWAT:

0 commit comments

Comments
 (0)