]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: fix a DSS option writing error
authorGeliang Tang <geliang.tang@suse.com>
Thu, 6 Jan 2022 22:06:37 +0000 (14:06 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Jan 2022 11:29:45 +0000 (11:29 +0000)
commit13833ee7d86289e76b955db427cfd0070f2a8f9d
tree8b71f0a14275956c1a14f7a4c2a8beee888236ea
parent894e5f1559adcdff37e58219450775984cd4c319
mptcp: fix a DSS option writing error

'ptr += 1;' was omitted in the original code.

If the DSS is the last option -- which is what we have most of the
time -- that's not an issue. But it is if we need to send something else
after like a RM_ADDR or an MP_PRIO.

Fixes: e8d770ee0139 ("mptcp: optimize out option generation")
Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Geliang Tang <geliang.tang@suse.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/options.c