aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp/timer.c
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2023-03-15 20:57:42 +0000
committerDavid S. Miller <[email protected]>2023-03-17 08:25:05 +0000
commit9a25f0cb0d7ee689f54f38890e66bc78520b0c62 (patch)
tree7b4c80bb16f7d8c22a475b5f68a10163fb1774d2 /net/dccp/timer.c
parenttcp: annotate lockless accesses to sk->sk_err_soft (diff)
downloadkernel-9a25f0cb0d7ee689f54f38890e66bc78520b0c62.tar.gz
kernel-9a25f0cb0d7ee689f54f38890e66bc78520b0c62.zip
dccp: annotate lockless accesses to sk->sk_err_soft
This field can be read/written without lock synchronization. Signed-off-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/dccp/timer.c')
-rw-r--r--net/dccp/timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dccp/timer.c b/net/dccp/timer.c
index 27a3b37acd2e..b3255e87cc7e 100644
--- a/net/dccp/timer.c
+++ b/net/dccp/timer.c
@@ -19,7 +19,7 @@ int sysctl_dccp_retries2 __read_mostly = TCP_RETR2;
static void dccp_write_err(struct sock *sk)
{
- sk->sk_err = sk->sk_err_soft ? : ETIMEDOUT;
+ sk->sk_err = READ_ONCE(sk->sk_err_soft) ? : ETIMEDOUT;
sk_error_report(sk);
dccp_send_reset(sk, DCCP_RESET_CODE_ABORTED);