Searched hist:"8555 c6bfd5fddb1cf363d3cd157d70a1bb27f718" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/net/mptcp/ |
H A D | protocol.c | diff 8555c6bfd5fddb1cf363d3cd157d70a1bb27f718 Mon Aug 03 11:40:39 CDT 2020 Paolo Abeni <pabeni@redhat.com> mptcp: fix bogus sendmsg() return code under pressure
In case of memory pressure, mptcp_sendmsg() may call sk_stream_wait_memory() after succesfully xmitting some bytes. If the latter fails we currently return to the user-space the error code, ignoring the succeful xmit.
Address the issue always checking for the xmitted bytes before mptcp_sendmsg() completes.
Fixes: f296234c98a8 ("mptcp: Add handling of incoming MP_JOIN requests") Reviewed-by: Matthieu Baerts <matthieu.baerts@tessares.net> Signed-off-by: Paolo Abeni <pabeni@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|