mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 10:31:46 +09:00
mptcp: avoid unneeded address copy
[ Upstream commit2bb9a37f0e] 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> Stable-dep-of:7e8b88ec35("mptcp: consolidate passive msk socket initialization") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
1b9e3ab669
commit
9872e8c632
@@ -759,8 +759,6 @@ create_child:
|
||||
goto dispose_child;
|
||||
}
|
||||
|
||||
if (new_msk)
|
||||
mptcp_copy_inaddrs(new_msk, child);
|
||||
mptcp_subflow_drop_ctx(child);
|
||||
goto out;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user