Repository navigation
Commit 8555c6b
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: f296234 ("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>1 parent f8deaea commit 8555c6b
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
984 | 984 | | |
985 | 985 | | |
986 | 986 | | |
987 | | - | |
988 | 987 | | |
989 | 988 | | |
990 | 989 | | |
| |||
997 | 996 | | |
998 | 997 | | |
999 | 998 | | |
1000 | | - | |
| 999 | + | |
1001 | 1000 | | |
1002 | 1001 | | |
1003 | 1002 | | |
| |||
0 commit comments