]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: fix joined subflows with unblocking sk
authorMatthieu Baerts <matthieu.baerts@tessares.net>
Mon, 27 Jul 2020 10:24:33 +0000 (12:24 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Jul 2020 18:50:57 +0000 (11:50 -0700)
commit8c328d7f4567395cc51cca49288f9331a7e321b3
tree89ef40806824bdb9358799a03ef715233afec81f
parentb97ef6732205e01fe0a8b8a2f5c6b3c4065eca12
mptcp: fix joined subflows with unblocking sk

Unblocking sockets used for outgoing connections were not containing
inet info about the initial connection due to a typo there: the value of
"err" variable is negative in the kernelspace.

This fixes the creation of additional subflows where the remote port has
to be reused if the other host didn't announce another one. This also
fixes inet_diag showing blank info about MPTCP sockets from unblocking
sockets doing a connect().

Fixes: 2f095a904175 ("mptcp: fix unblocking connect()")
Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
Acked-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/protocol.c