From: Adrian Bunk Date: Fri, 15 Jun 2007 22:15:43 +0000 (-0700) Subject: [RXRPC] net/rxrpc/ar-connection.c: fix NULL dereference X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=16c61add51f2182140637c924687a2aab6b568f9;p=openwrt%2Fstaging%2Fblogic.git [RXRPC] net/rxrpc/ar-connection.c: fix NULL dereference This patch fixes a NULL dereference spotted by the Coverity checker. Signed-off-by: Adrian Bunk Signed-off-by: David S. Miller --- diff --git a/net/rxrpc/ar-connection.c b/net/rxrpc/ar-connection.c index 43cb3e051ece..482750efc235 100644 --- a/net/rxrpc/ar-connection.c +++ b/net/rxrpc/ar-connection.c @@ -211,7 +211,7 @@ static struct rxrpc_connection *rxrpc_alloc_connection(gfp_t gfp) conn->header_size = sizeof(struct rxrpc_header); } - _leave(" = %p{%d}", conn, conn->debug_id); + _leave(" = %p{%d}", conn, conn ? conn->debug_id : 0); return conn; }