All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH mptcp-next v1] mptcp: fix cast type of is_fully_established
@ 2025-03-25 10:36 Geliang Tang
  2025-03-25 10:49 ` Matthieu Baerts
  2025-03-25 11:45 ` MPTCP CI
  0 siblings, 2 replies; 6+ messages in thread
From: Geliang Tang @ 2025-03-25 10:36 UTC (permalink / raw)
  To: mptcp; +Cc: Geliang Tang

From: Geliang Tang <tanggeliang@kylinos.cn>

The parameter type of mptcp_is_fully_established() is 'struct sock *',
not 'void *', so this patch casts 'msk' as 'struct sock *' instead of
'void *' in mptcp_can_accept_new_subflow().

Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
---
 net/mptcp/subflow.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/mptcp/subflow.c b/net/mptcp/subflow.c
index 409bd415ef1d..da452a1d5433 100644
--- a/net/mptcp/subflow.c
+++ b/net/mptcp/subflow.c
@@ -60,7 +60,7 @@ static void subflow_generate_hmac(u64 key1, u64 key2, u32 nonce1, u32 nonce2,
 
 static bool mptcp_can_accept_new_subflow(const struct mptcp_sock *msk)
 {
-	return mptcp_is_fully_established((void *)msk) &&
+	return mptcp_is_fully_established((struct sock *)msk) &&
 		((mptcp_pm_is_userspace(msk) &&
 		  mptcp_userspace_pm_active(msk)) ||
 		 READ_ONCE(msk->pm.accept_subflow));
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-03-26 10:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-25 10:36 [PATCH mptcp-next v1] mptcp: fix cast type of is_fully_established Geliang Tang
2025-03-25 10:49 ` Matthieu Baerts
2025-03-26  1:08   ` Geliang Tang
2025-03-26 10:17     ` Matthieu Baerts
2025-03-26 10:24       ` Geliang Tang
2025-03-25 11:45 ` MPTCP CI

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.