projects
/
platform
/
kernel
/
linux-starfive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net: annotate data-races around sk->sk_dst_pending_confirm
[platform/kernel/linux-starfive.git]
/
net
/
ipv4
/
tcp_output.c
diff --git
a/net/ipv4/tcp_output.c
b/net/ipv4/tcp_output.c
index
f072346
..
9ccfdc8
100644
(file)
--- a/
net/ipv4/tcp_output.c
+++ b/
net/ipv4/tcp_output.c
@@
-1331,7
+1331,7
@@
static int __tcp_transmit_skb(struct sock *sk, struct sk_buff *skb,
skb->destructor = skb_is_tcp_pure_ack(skb) ? __sock_wfree : tcp_wfree;
refcount_add(skb->truesize, &sk->sk_wmem_alloc);
skb->destructor = skb_is_tcp_pure_ack(skb) ? __sock_wfree : tcp_wfree;
refcount_add(skb->truesize, &sk->sk_wmem_alloc);
- skb_set_dst_pending_confirm(skb,
sk->sk_dst_pending_confirm
);
+ skb_set_dst_pending_confirm(skb,
READ_ONCE(sk->sk_dst_pending_confirm)
);
/* Build TCP header and checksum it. */
th = (struct tcphdr *)skb->data;
/* Build TCP header and checksum it. */
th = (struct tcphdr *)skb->data;