]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
rxrpc: Call rxrpc_release_call() on error in rxrpc_new_client_call()
authorDavid Howells <dhowells@redhat.com>
Sat, 17 Sep 2016 09:49:12 +0000 (10:49 +0100)
committerDavid Howells <dhowells@redhat.com>
Sat, 17 Sep 2016 09:53:21 +0000 (10:53 +0100)
commit357f5ef64628c2d6c532e7a6bfc0bc3830b4c221
tree39be3c922717b656cc36122ada8f2c8814ee927c
parent66d58af7f4af53e8318e852efa31a7cb0e31bfb6
rxrpc: Call rxrpc_release_call() on error in rxrpc_new_client_call()

Call rxrpc_release_call() on getting an error in rxrpc_new_client_call()
rather than trying to do the cleanup ourselves.  This isn't a problem,
provided we set RXRPC_CALL_HAS_USERID only if we actually add the call to
the calls tree as cleanup code fragments that would otherwise cause
problems are conditional.

Without this, we miss some of the cleanup.

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