rxrpc: Fix a potential NULL-pointer deref in rxrpc_abort_calls
authorDavid Howells <dhowells@redhat.com>
Tue, 30 Aug 2016 08:49:28 +0000 (09:49 +0100)
committerDavid Howells <dhowells@redhat.com>
Tue, 30 Aug 2016 14:56:12 +0000 (15:56 +0100)
commitccbd3dbe85e1445231a7e0da2dada130cedce9d0
treecb96dbb4c0f156c993f18ccf9f3b3277b3492da1
parent3201a39ba8d7edaa1698c438fdd8f1464290d033
rxrpc: Fix a potential NULL-pointer deref in rxrpc_abort_calls

The call pointer in a channel on a connection will be NULL if there's no
active call on that channel.  rxrpc_abort_calls() needs to check for this
before trying to take the call's state_lock.

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