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

From: David Howells
Date: Thu Mar 02 2017 - 22:46:52 EST


David Howells <dhowells@xxxxxxxxxx> wrote:

> 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>

Please ignore this - there's another patch interposed that I haven't sent
upstream yet. Will rebase on net/master.

David