Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7acef604 authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller
Browse files

rxrpc: checking for IS_ERR() instead of NULL



The rxrpc_lookup_peer() function returns NULL on error, it never returns
error pointers.

Fixes: 8496af50 ('rxrpc: Use RCU to access a peer's service connection tree')
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 77501a79
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -163,7 +163,7 @@ struct rxrpc_connection *rxrpc_incoming_connection(struct rxrpc_local *local,

	if (!peer) {
		peer = rxrpc_lookup_peer(local, srx, GFP_NOIO);
		if (IS_ERR(peer))
		if (!peer)
			goto enomem;
	}