rxrpc: Rework peer object handling to use hash table and RCU

Dan Carpenter dan.carpenter at oracle.com
Tue Jun 21 00:23:02 PDT 2016


Hello David Howells,

The patch be6e6707f6ee: "rxrpc: Rework peer object handling to use
hash table and RCU" from Apr 4, 2016, leads to the following static
checker warning:

	net/rxrpc/af_rxrpc.c:250 rxrpc_name_to_transport()
	warn: 'peer' isn't an ERR_PTR

net/rxrpc/af_rxrpc.c
   247  
   248          /* find a remote transport endpoint from the local one */
   249          peer = rxrpc_lookup_peer(rx->local, srx, gfp);
   250          if (IS_ERR(peer)
   251                  return ERR_CAST(peer);
   252  

See also:

	net/rxrpc/call_accept.c:99 rxrpc_accept_incoming_call()
	warn: 'peer' isn't an ERR_PTR

regards,
dan carpenter



More information about the linux-afs mailing list