]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitffdac8c32326d64915d7d75ef77854b6465b6a77
tree6eb87644236dfd48d5e8c62d2fdf1d9f87c3b079
parent99c81b0df6efb0fcbbd63688959fabc922180ac8
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