]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
rxrpc: Fix rxrpc_bundle::alloc_error to be signed
authorDavid Howells <dhowells@redhat.com>
Mon, 14 Sep 2020 12:10:00 +0000 (13:10 +0100)
committerDavid Howells <dhowells@redhat.com>
Mon, 14 Sep 2020 15:18:59 +0000 (16:18 +0100)
commit8806245a3e7ad6aafc5bd8c58b0f0dea82a8e4c5
tree8092474ded42ed3f19856b76a2c94cad1679cdcf
parent96a9c425e234aac193afb9da6ca11fafc679c7e2
rxrpc: Fix rxrpc_bundle::alloc_error to be signed

The alloc_error field in the rxrpc_bundle struct should be signed as it has
negative error codes assigned to it.  Checks directly on it may then fail,
and may produce a warning like this:

net/rxrpc/conn_client.c:662 rxrpc_wait_for_channel()
warn: 'bundle->alloc_error' is unsigned

Fixes: 245500d853e9 ("rxrpc: Rewrite the client connection manager")
Reported-by Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David Howells <dhowells@redhat.com>
net/rxrpc/ar-internal.h