]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: use proper req destructor for IPv6
authorMatthieu Baerts <matthieu.baerts@tessares.net>
Sat, 10 Dec 2022 00:28:10 +0000 (16:28 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Jan 2023 10:11:44 +0000 (11:11 +0100)
commit85ec6a3c1e35a6d043e95ddb57bd9761173c818f
tree053fd5a0bec04955eaf3e8eb78f63822bd8249af
parent8ea9bbcb6c2714e767a8bc7e60993411683078a1
mptcp: use proper req destructor for IPv6

commit a2b83d4686d8b854cf1795408b9e52e17fa4dea7 upstream.

Before, only the destructor from TCP request sock in IPv4 was called
even if the subflow was IPv6.

It is important to use the right destructor to avoid memory leaks with
some advanced IPv6 features, e.g. when the request socks contain
specific IPv6 options.

Fixes: 763873e77a3e ("mptcp: Add key generation and token tree")
Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Cc: stable@vger.kernel.org
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mptcp/subflow.c