]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2a97b8fc2b00c552de221ad4759c8d7df850723f
tree2bd8b02c5c6923f3b9795f15cec739e5fab68891
parent73be66eff92c598508244f8060ea9d0b7c087e85
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