]> git.baikalelectronics.ru Git - 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)
commit3765a976953d8a0e4c804813f2f432fc895a6612
tree39be3c922717b656cc36122ada8f2c8814ee927c
parente3412cc662350fec018f2546812df662132283a5
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