]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit906a6a051aeb6ead7df097448f7a0950769ca07d
treeab2070a992a03b0a991ab1ebfb3eb2df8ac39699
parente8931b75c4cf0c94e6f3b773cf8f25f3e1bde7a8
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: 71425adf1120 ("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