Patch "mptcp: fix removing ids bitmap setting" has been added to the 5.15-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    mptcp: fix removing ids bitmap setting

to the 5.15-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     mptcp-fix-removing-ids-bitmap-setting.patch
and it can be found in the queue-5.15 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 43c052f4d79be30e5443649f7586de9d91e69de1
Author: Geliang Tang <geliang.tang@xxxxxxxx>
Date:   Thu Jan 20 16:35:28 2022 -0800

    mptcp: fix removing ids bitmap setting
    
    [ Upstream commit a4c0214fbee97c46e3f41fee37931d66c0fc3cb1 ]
    
    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@xxxxxxxxxx>
    Signed-off-by: Geliang Tang <geliang.tang@xxxxxxxx>
    Signed-off-by: Mat Martineau <mathew.j.martineau@xxxxxxxxxxxxxxx>
    Signed-off-by: Jakub Kicinski <kuba@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/net/mptcp/pm_netlink.c b/net/mptcp/pm_netlink.c
index 7f11eb3e35137..84e6b55375e1d 100644
--- a/net/mptcp/pm_netlink.c
+++ b/net/mptcp/pm_netlink.c
@@ -781,7 +781,7 @@ static void mptcp_pm_nl_rm_addr_or_subflow(struct mptcp_sock *msk,
 			msk->pm.subflows--;
 			__MPTCP_INC_STATS(sock_net(sk), rm_type);
 		}
-		__set_bit(rm_list->ids[1], msk->pm.id_avail_bitmap);
+		__set_bit(rm_list->ids[i], msk->pm.id_avail_bitmap);
 		if (!removed)
 			continue;
 



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux