]> git.baikalelectronics.ru Git - kernel.git/commit
rxrpc: Fix checker warning by not passing always-zero value to ERR_PTR()
authorDavid Howells <dhowells@redhat.com>
Thu, 13 Oct 2016 07:39:52 +0000 (08:39 +0100)
committerDavid Howells <dhowells@redhat.com>
Thu, 13 Oct 2016 07:39:52 +0000 (08:39 +0100)
commit0f416c4130ef9010147f8ac5f84d5c6c1019bf50
tree0694aa1b68d45dc1b06fb4ae2dc40027dc6b693d
parent1bcb3569bee49708004431b739d040b5173d5b7d
rxrpc: Fix checker warning by not passing always-zero value to ERR_PTR()

Fix the following checker warning:

net/rxrpc/call_object.c:279 rxrpc_new_client_call()
warn: passing zero to 'ERR_PTR'

where a value that's always zero is passed to ERR_PTR() so that it can be
passed to a tracepoint in an auxiliary pointer field.

Just pass NULL instead to the tracepoint.

Fixes: a2537729326a ("rxrpc: Add some additional call tracing")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David Howells <dhowells@redhat.com>
net/rxrpc/call_object.c