]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: fix local endpoint accounting
authorPaolo Abeni <pabeni@redhat.com>
Tue, 5 Jul 2022 21:32:16 +0000 (14:32 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Jul 2022 11:50:26 +0000 (12:50 +0100)
commit136b87fa6c643f13e483d666e69cf2912477a68f
treefb291581d49b76b70665b4831bbcbe1313797746
parent93bfa10867023c8676fc51bdee32ad69323310ab
mptcp: fix local endpoint accounting

In mptcp_pm_nl_rm_addr_or_subflow() we always mark as available
the id corresponding to the just removed address.

The used bitmap actually tracks only the local IDs: we must
restrict the operation when a (local) subflow is removed.

Fixes: 02fcb7437966 ("mptcp: do not block subflows creation on errors")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/pm_netlink.c