Skip to content

Commit e5f0d2d

Browse files
edumazetdavem330
authored andcommitted
net: add missing data-race annotation for sk_ll_usec
In a prior commit I forgot that sk_getsockopt() reads sk->sk_ll_usec without holding a lock. Fixes: 0dbffbb ("net: annotate data race around sk_ll_usec") Signed-off-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 11695c6 commit e5f0d2d

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
@@ -1900,7 +1900,7 @@ int sk_getsockopt(struct sock *sk, int level, int optname,
19001900

19011901
#ifdef CONFIG_NET_RX_BUSY_POLL
19021902
case SO_BUSY_POLL:
1903-
v.val = sk->sk_ll_usec;
1903+
v.val = READ_ONCE(sk->sk_ll_usec);
19041904
break;
19051905
case SO_PREFER_BUSY_POLL:
19061906
v.val = READ_ONCE(sk->sk_prefer_busy_poll);

0 commit comments

Comments
 (0)