]> git.baikalelectronics.ru Git - kernel.git/commit
rxrpc: rxrpc_kernel_send_data() needs to handle failed call better
authorDavid Howells <dhowells@redhat.com>
Thu, 9 Mar 2017 08:10:32 +0000 (08:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Mar 2017 02:30:10 +0000 (18:30 -0800)
commitf87e39f4b8da931fb42b7694a95974f192a5d119
tree6df3f8fefe6cb6ea23623e2f5eaaa15b04594826
parent32b37ab7a3d75d8edb79f2d350561ebecd534194
rxrpc: rxrpc_kernel_send_data() needs to handle failed call better

If rxrpc_kernel_send_data() is asked to send data through a call that has
already failed (due to a remote abort, received protocol error or network
error), then return the associated error code saved in the call rather than
ESHUTDOWN.

This allows the caller to work out whether to ask for the abort code or not
based on this.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rxrpc/sendmsg.c