]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: provide subflow aware release function
authorFlorian Westphal <fw@strlen.de>
Fri, 19 Feb 2021 17:35:39 +0000 (18:35 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 23 Feb 2021 02:54:59 +0000 (18:54 -0800)
commitad98dd37051e14fa8c785609430d907fcfd518ba
treeb11b8a0e41bd869811d1c92f6fc11ce66b5efcd3
parentd87903b63e3ce1eafaa701aec5cc1d0ecd0d84dc
mptcp: provide subflow aware release function

mptcp re-used inet(6)_release, so the subflow sockets are ignored.
Need to invoke ip(v6)_mc_drop_socket function to ensure mcast join
resources get free'd.

Fixes: 717e79c867ca5 ("mptcp: Add setsockopt()/getsockopt() socket operations")
Closes: https://github.com/multipath-tcp/mptcp_net-next/issues/110
Acked-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/protocol.c