Re: [PATCH net] rxrpc: Fix potential NULL-pointer exception

From: David Miller
Date: Fri Mar 03 2017 - 13:16:47 EST


From: David Howells <dhowells@xxxxxxxxxx>
Date: Thu, 02 Mar 2017 23:26:13 +0000

> 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: 540b1c48c37a ("rxrpc: Fix deadlock between call creation and sendmsg/recvmsg")
> Reported-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>
> Signed-off-by: David Howells <dhowells@xxxxxxxxxx>

Applied.