rxrpc: Fix a null ptr deref in rxrpc_fill_out_ack()
authorDavid Howells <dhowells@redhat.com>
Thu, 2 Nov 2017 15:06:55 +0000 (15:06 +0000)
committerDavid Howells <dhowells@redhat.com>
Thu, 2 Nov 2017 15:20:43 +0000 (15:20 +0000)
commit1457cc4cfb93511de347d1d0a1c9da3e826b66fe
treeb038ecca9f4b4cb63ab5c94fa0bc951ac843a638
parent20acbd9a7aeee0b0af7107f3de791a52c949f3ac
rxrpc: Fix a null ptr deref in rxrpc_fill_out_ack()

rxrpc_fill_out_ack() needs to be passed the connection pointer from its
caller rather than using call->conn as the call may be disconnected in
parallel with it, clearing call->conn, leading to:

BUG: unable to handle kernel NULL pointer dereference at 0000000000000010
IP: rxrpc_send_ack_packet+0x231/0x6a4

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