mptcp: fix removing ids bitmap setting
authorGeliang Tang <geliang.tang@suse.com>
Fri, 21 Jan 2022 00:35:28 +0000 (16:35 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 21 Jan 2022 04:24:01 +0000 (20:24 -0800)
commita4c0214fbee97c46e3f41fee37931d66c0fc3cb1
treeab2070a992a03b0a991ab1ebfb3eb2df8ac39699
parent8e9eacad7ec7a9cbf262649ebf1fa6e6f6cc7d82
mptcp: fix removing ids bitmap setting

In mptcp_pm_nl_rm_addr_or_subflow(), the bit of rm_list->ids[i] in the
id_avail_bitmap should be set, not rm_list->ids[1]. This patch fixed it.

Fixes: 86e39e04482b ("mptcp: keep track of local endpoint still available for each msk")
Acked-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Geliang Tang <geliang.tang@suse.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/pm_netlink.c