]> git.baikalelectronics.ru Git - kernel.git/commit
rxrpc: checking for IS_ERR() instead of NULL
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 18 Jun 2016 08:44:03 +0000 (11:44 +0300)
committerDavid Howells <dhowells@redhat.com>
Wed, 22 Jun 2016 08:09:58 +0000 (09:09 +0100)
commit5fd29ad12b6750cfa71af30c34d83467ff80a88c
treeb30879ac5a1734d71521923d429a407a2bf273dc
parent52aaf7b44d7bab07a88322ca3788b38369fd0a20
rxrpc: checking for IS_ERR() instead of NULL

rxrpc_lookup_peer_rcu() and rxrpc_lookup_peer() return NULL on error, never
error pointers, so IS_ERR() can't be used.

Fix three callers of those functions.

Fixes: f603017494b5 ('rxrpc: Rework peer object handling to use hash table and RCU')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David Howells <dhowells@redhat.com>
net/rxrpc/af_rxrpc.c
net/rxrpc/call_accept.c
net/rxrpc/input.c