]> git.baikalelectronics.ru Git - kernel.git/commit
rxrpc: Fix potential NULL-pointer exception
authorDavid Howells <dhowells@redhat.com>
Thu, 2 Mar 2017 23:48:52 +0000 (23:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Mar 2017 17:48:00 +0000 (09:48 -0800)
commitaf28e59271e9087267b9ca7ac08779af9167383d
tree70d30d65492ab3dcd358684598edaac071670f99
parente5d660da4b17c3a4e44fd3b1f64150876e49afc0
rxrpc: Fix potential NULL-pointer exception

Fix a potential NULL-pointer exception in rxrpc_do_sendmsg().  The call
state check that I added should have gone into the else-body of the
if-statement where we actually have a call to check.

Found by CoverityScan CID#1414316 ("Dereference after null check").

Fixes: 8c55767f55a4 ("rxrpc: Fix deadlock between call creation and sendmsg/recvmsg")
Reported-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rxrpc/sendmsg.c