mptcp: fix a DSS option writing error
authorGeliang Tang <geliang.tang@suse.com>
Thu, 6 Jan 2022 22:06:37 +0000 (14:06 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 10:03:59 +0000 (11:03 +0100)
commite1652f70e8964218c916ae4b6da3056b8f3c6e11
treecca1318a51121e459a445c4c4ffc7c9c04602171
parent72aba03ba836c7b72b29cbec1c8ddc61b57edada
mptcp: fix a DSS option writing error

[ Upstream commit 110b6d1fe98fd7af9893992459b651594d789293 ]

'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: 1bff1e43a30e ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mptcp/options.c