summaryrefslogtreecommitdiff
path: root/net/sctp/ipv6.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2023-10-01 21:09:55 +0300
committerDavid S. Miller <davem@davemloft.net>2023-10-01 21:09:55 +0300
commit2be825ebb9d1b17f1a9e46af78d24b76c4ff7a1f (patch)
tree5a49235d004d92fa6330bbeacf24b5252cea032c /net/sctp/ipv6.c
parent06bc3668cc2a6db2831b9086f0e3c6ebda599dba (diff)
parenteb44ad4e635132754bfbcb18103f1dcb7058aedd (diff)
downloadlinux-2be825ebb9d1b17f1a9e46af78d24b76c4ff7a1f.tar.xz
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 <davem@davemloft.net>
Diffstat (limited to 'net/sctp/ipv6.c')
-rw-r--r--net/sctp/ipv6.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/ipv6.c b/net/sctp/ipv6.c
index 5c0ed5909d85..24368f755ab1 100644
--- a/net/sctp/ipv6.c
+++ b/net/sctp/ipv6.c
@@ -247,7 +247,7 @@ static int sctp_v6_xmit(struct sk_buff *skb, struct sctp_transport *t)
rcu_read_lock();
res = ip6_xmit(sk, skb, fl6, sk->sk_mark,
rcu_dereference(np->opt),
- tclass, sk->sk_priority);
+ tclass, READ_ONCE(sk->sk_priority));
rcu_read_unlock();
return res;
}