mptcp: avoid subflow socket usage in mptcp_get_port()
authorPaolo Abeni <pabeni@redhat.com>
Fri, 11 Aug 2023 15:57:16 +0000 (17:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Aug 2023 06:06:13 +0000 (07:06 +0100)
commitcfb63e50d319ee5d11254c83d3ad2b135b8735db
tree2a19373b019328107393261fcc59cfe03ae5425a
parentccae357c1c6a76c3b46f12ae18d7679d871c9390
mptcp: avoid subflow socket usage in mptcp_get_port()

We are going to remove the first subflow socket soon, so avoid
accessing it in mptcp_get_port(). Instead, access directly the
first subflow sock.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Mat Martineau <martineau@kernel.org>
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/protocol.c