diff options
| author | Paolo Abeni <[email protected]> | 2020-08-03 16:40:39 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2020-08-04 01:14:20 +0000 |
| commit | 8555c6bfd5fddb1cf363d3cd157d70a1bb27f718 (patch) | |
| tree | 82945fabfd5072f5fef867a20be5a0dd49f549e0 /drivers/net/dsa/dsa_loop.c | |
| parent | Merge branch 'mlxsw-Add-support-for-buffer-drop-traps' (diff) | |
| download | kernel-8555c6bfd5fddb1cf363d3cd157d70a1bb27f718.tar.gz kernel-8555c6bfd5fddb1cf363d3cd157d70a1bb27f718.zip | |
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 <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/dsa/dsa_loop.c')
0 files changed, 0 insertions, 0 deletions
