]> git.baikalelectronics.ru Git - kernel.git/commit
rxrpc: Need to flag call as being released on connect failure
authorDavid Howells <dhowells@redhat.com>
Mon, 8 Aug 2016 12:06:41 +0000 (13:06 +0100)
committerDavid Howells <dhowells@redhat.com>
Tue, 9 Aug 2016 16:12:23 +0000 (17:12 +0100)
commitdd063a9bb8b3bc8c38f1ed3acd5b00634e448229
tree6aed9ab4d827efa35256777f3cc4f21db4c4df44
parent9d40f6678a626994d1d770cf8308be08e18ae3ce
rxrpc: Need to flag call as being released on connect failure

If rxrpc_new_client_call() fails to make a connection, the call record that
it allocated needs to be marked as RXRPC_CALL_RELEASED before it is passed
to rxrpc_put_call() to indicate that it no longer has any attachment to the
AF_RXRPC socket.

Without this, an assertion failure may occur at:

net/rxrpc/call_object:635

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