mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 15:12:13 +02:00
mptcp: avoid unneeded address copy
In the syn_recv fallback path, the msk is unused. We can skip setting the socket address. Signed-off-by: Paolo Abeni <pabeni@redhat.com> Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net> Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
9380d89104
commit
2bb9a37f0e
|
|
@ -821,8 +821,6 @@ static struct sock *subflow_syn_recv_sock(const struct sock *sk,
|
|||
goto dispose_child;
|
||||
}
|
||||
|
||||
if (new_msk)
|
||||
mptcp_copy_inaddrs(new_msk, child);
|
||||
mptcp_subflow_drop_ctx(child);
|
||||
goto out;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user