]> git.baikalelectronics.ru Git - kernel.git/commit
rxrpc: Return negative error code to kernel service
authorDavid Howells <dhowells@redhat.com>
Thu, 6 Oct 2016 07:11:50 +0000 (08:11 +0100)
committerDavid Howells <dhowells@redhat.com>
Thu, 6 Oct 2016 07:11:50 +0000 (08:11 +0100)
commit3c7e2706d486c2db0447fbd79c2ce1226dc51a8a
tree61f078ad0f755304a3603ce57c28c2d47b9e995c
parent980c66456c97dc14e7beec43f13d4f074d99a86d
rxrpc: Return negative error code to kernel service

In rxrpc_kernel_recv_data(), when we return the error number incurred by a
failed call, we must negate it before returning it as it's stored as
positive (that's what we have to pass back to userspace).

Signed-off-by: David Howells <dhowells@redhat.com>
net/rxrpc/recvmsg.c