Skip to content

Commit 78bcd59

Browse files
Geliang Tangintel-lab-lkp
authored andcommitted
mptcp: pm: userspace: drop is_userspace in free_local_addr_list
To reduce the path manager's reliance on mptcp_pm_is_userspace() and mptcp_pm_is_kernel() helpers, this patch drops the check for mptcp_pm_is_userspace() in mptcp_free_local_addr_list() and replaces it with a check to see if userspace_pm_local_addr_list is empty. Signed-off-by: Geliang Tang <[email protected]>
1 parent cddf0e2 commit 78bcd59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/mptcp/pm_userspace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ void mptcp_free_local_addr_list(struct mptcp_sock *msk)
1818
struct sock *sk = (struct sock *)msk;
1919
LIST_HEAD(free_list);
2020

21-
if (!mptcp_pm_is_userspace(msk))
21+
if (list_empty(&msk->pm.userspace_pm_local_addr_list))
2222
return;
2323

2424
spin_lock_bh(&msk->pm.lock);

0 commit comments

Comments
 (0)