aboutsummaryrefslogtreecommitdiffstats
path: root/net/can/raw.c
diff options
context:
space:
mode:
authorDavid S. Miller <[email protected]>2023-10-01 18:09:55 +0000
committerDavid S. Miller <[email protected]>2023-10-01 18:09:55 +0000
commit2be825ebb9d1b17f1a9e46af78d24b76c4ff7a1f (patch)
tree5a49235d004d92fa6330bbeacf24b5252cea032c /net/can/raw.c
parentopenvswitch: reduce stack usage in do_execute_actions (diff)
parentnet: annotate data-races around sk->sk_dst_pending_confirm (diff)
downloadkernel-2be825ebb9d1b17f1a9e46af78d24b76c4ff7a1f.tar.gz
kernel-2be825ebb9d1b17f1a9e46af78d24b76c4ff7a1f.zip
Merge branch 'socket-option-lockless'
Eric Dumazet says: ==================== net: more data-races fixes and lockless socket options This is yet another round of data-races fixes, and lockless socket options. ==================== Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/can/raw.c')
-rw-r--r--net/can/raw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/can/raw.c b/net/can/raw.c
index d50c3f3d892f..73468d2ebd51 100644
--- a/net/can/raw.c
+++ b/net/can/raw.c
@@ -881,7 +881,7 @@ static int raw_sendmsg(struct socket *sock, struct msghdr *msg, size_t size)
}
skb->dev = dev;
- skb->priority = sk->sk_priority;
+ skb->priority = READ_ONCE(sk->sk_priority);
skb->mark = READ_ONCE(sk->sk_mark);
skb->tstamp = sockc.transmit_time;