Commit e6d12bdb authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

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: eac66402 ("net: annotate sk->sk_rcvlowat lockless reads")
Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ea7f45ef
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1730,7 +1730,7 @@ int sk_getsockopt(struct sock *sk, int level, int optname,
		break;

	case SO_RCVLOWAT:
		v.val = sk->sk_rcvlowat;
		v.val = READ_ONCE(sk->sk_rcvlowat);
		break;

	case SO_SNDLOWAT: