OSDN Git Service

mptcp: Safely store sequence number when sending data
authorMat Martineau <mathew.j.martineau@linux.intel.com>
Tue, 28 Jul 2020 22:12:10 +0000 (15:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Jul 2020 00:02:42 +0000 (17:02 -0700)
commit721e9089905ab7aebd5364b86b5f068f632a0e49
tree2bd8b02c5c6923f3b9795f15cec739e5fab68891
parentc75293925f24630326abdf79751d980ec3878f65
mptcp: Safely store sequence number when sending data

The MPTCP socket's write_seq member can be read without the msk lock
held, so use WRITE_ONCE() to store it.

Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/protocol.c