Message ID | 20240223-upstream-net-20240223-misc-fixes-v1-9-162e87e48497@kernel.org (mailing list archive) |
---|---|
State | Accepted |
Commit | d6a9608af9a75d13243d217f6ce1e30e57d56ffe |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | mptcp: more misc. fixes for v6.8 | expand |
diff --git a/net/mptcp/diag.c b/net/mptcp/diag.c index 6ff6f14674aa..7017dd60659d 100644 --- a/net/mptcp/diag.c +++ b/net/mptcp/diag.c @@ -21,6 +21,9 @@ static int subflow_get_info(struct sock *sk, struct sk_buff *skb) bool slow; int err; + if (inet_sk_state_load(sk) == TCP_LISTEN) + return 0; + start = nla_nest_start_noflag(skb, INET_ULP_INFO_MPTCP); if (!start) return -EMSGSIZE;