rxrpc: Don't negate call->error before returning it
authorDavid Howells <dhowells@redhat.com>
Tue, 29 Aug 2017 09:18:43 +0000 (10:18 +0100)
committerDavid Howells <dhowells@redhat.com>
Tue, 29 Aug 2017 09:55:20 +0000 (10:55 +0100)
commitbd2db2d231b4a9daccdba6712c3113e650260c6c
tree6eb87644236dfd48d5e8c62d2fdf1d9f87c3b079
parent7b674e390e513ea443c5a0f27ec95e93fb8a94fa
rxrpc: Don't negate call->error before returning it

call->error is stored as 0 or a negative error code.  Don't negate this
value (ie. make it positive) before returning it from a kernel function
(though it should still be negated before passing to userspace through a
control message).

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