mptcp: __mptcp_tcp_fallback() returns a struct sock
authorPaolo Abeni <pabeni@redhat.com>
Mon, 29 Jun 2020 20:26:24 +0000 (22:26 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Jun 2020 00:29:38 +0000 (17:29 -0700)
commit76660afbb7a1ac6bef0be34c4c6e76d7e07b74d7
treef68c5ed74955d0e8a67cd4b787d7483829647812
parentfa68018dc45e3faee9d866d5dc484d141e8f1093
mptcp: __mptcp_tcp_fallback() returns a struct sock

Currently __mptcp_tcp_fallback() always return NULL
on incoming connections, because MPTCP does not create
the additional socket for the first subflow.
Since the previous commit no __mptcp_tcp_fallback()
caller needs a struct socket, so let __mptcp_tcp_fallback()
return the first subflow sock and cope correctly even with
incoming connections.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Reviewed-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/protocol.c