Skip to content

Commit

Permalink
Squash to "mptcp: use mptcp_set_state" 2
Browse files Browse the repository at this point in the history
Use mptcp_set_state() in mptcp_pm_nl_create_listen_socket().

Signed-off-by: Geliang Tang <[email protected]>
  • Loading branch information
Geliang Tang authored and intel-lab-lkp committed Dec 19, 2023
1 parent 36d613c commit 2faaeb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/mptcp/pm_netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,7 @@ static int mptcp_pm_nl_create_listen_socket(struct sock *sk,

lock_sock(newsk);
ssk = __mptcp_nmpc_sk(mptcp_sk(newsk));
inet_sk_state_store(newsk, TCP_LISTEN);
mptcp_set_state(newsk, TCP_LISTEN);
release_sock(newsk);
if (IS_ERR(ssk))
return PTR_ERR(ssk);
Expand Down

0 comments on commit 2faaeb1

Please sign in to comment.