diff options
author | David Howells <dhowells@redhat.com> | 2020-07-20 12:41:46 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-20 17:47:10 -0700 |
commit | 639f181f0ee20d3249dbc55f740f0167267180f0 (patch) | |
tree | db0d374cdf4d772cb453f64580dcc640ec4f6885 /kernel/futex.c | |
parent | 7d85396c4c72de12df76d6b9853fd871dbfdf2ec (diff) | |
download | linux-639f181f0ee20d3249dbc55f740f0167267180f0.tar.bz2 |
rxrpc: Fix sendmsg() returning EPIPE due to recvmsg() returning ENODATA
rxrpc_sendmsg() returns EPIPE if there's an outstanding error, such as if
rxrpc_recvmsg() indicating ENODATA if there's nothing for it to read.
Change rxrpc_recvmsg() to return EAGAIN instead if there's nothing to read
as this particular error doesn't get stored in ->sk_err by the networking
core.
Also change rxrpc_sendmsg() so that it doesn't fail with delayed receive
errors (there's no way for it to report which call, if any, the error was
caused by).
Fixes: 17926a79320a ("[AF_RXRPC]: Provide secure RxRPC sockets for use by userspace and kernel both")
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/futex.c')
0 files changed, 0 insertions, 0 deletions