summaryrefslogtreecommitdiffstats
path: root/net/rxrpc/sendmsg.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2016-09-07 15:19:25 +0100
committerDavid Howells <dhowells@redhat.com>2016-09-07 15:30:22 +0100
commit278ac0cdd5e516bdef2b9b8f5a4dd6366a5bccfe (patch)
tree66c323033869878b0ca7b740ac8bf06f94462780 /net/rxrpc/sendmsg.c
parentf4fdb3525b247e1b4f9cc563641494c96c80f91a (diff)
downloadlinux-278ac0cdd5e516bdef2b9b8f5a4dd6366a5bccfe.tar.gz
linux-278ac0cdd5e516bdef2b9b8f5a4dd6366a5bccfe.tar.bz2
linux-278ac0cdd5e516bdef2b9b8f5a4dd6366a5bccfe.zip
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>
Diffstat (limited to 'net/rxrpc/sendmsg.c')
-rw-r--r--net/rxrpc/sendmsg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rxrpc/sendmsg.c b/net/rxrpc/sendmsg.c
index 803078bea507..2439aff131c7 100644
--- a/net/rxrpc/sendmsg.c
+++ b/net/rxrpc/sendmsg.c
@@ -322,7 +322,7 @@ static int rxrpc_send_data(struct rxrpc_sock *rx,
sp->hdr.serial = atomic_inc_return(&conn->serial);
sp->hdr.type = RXRPC_PACKET_TYPE_DATA;
sp->hdr.userStatus = 0;
- sp->hdr.securityIndex = conn->security_ix;
+ sp->hdr.securityIndex = call->security_ix;
sp->hdr._rsvd = 0;
sp->hdr.serviceId = call->service_id;