rxrpc: Cache the security index in the rxrpc_call struct

Cache the security index in the rxrpc_call struct so that we can get at it
even when the call has been disconnected and the connection pointer
cleared.

Signed-off-by: David Howells <dhowells@redhat.com>
This commit is contained in:
David Howells
2016-09-07 15:19:25 +01:00
parent f4fdb3525b
commit 278ac0cdd5
5 changed files with 7 additions and 2 deletions

View File

@@ -198,7 +198,7 @@ static int rxrpc_fast_process_data(struct rxrpc_call *call,
/* if the packet need security things doing to it, then it goes down
* the slow path */
if (call->conn->security_ix)
if (call->security_ix)
goto enqueue_packet;
sp->call = call;