Skip to content

Commit

Permalink
[RXRPC] net/rxrpc/ar-connection.c: fix NULL dereference
Browse files Browse the repository at this point in the history
This patch fixes a NULL dereference spotted by the Coverity checker.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Adrian Bunk authored and David S. Miller committed Jun 15, 2007
1 parent 7769f40 commit 16c61ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/rxrpc/ar-connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 16c61ad

Please sign in to comment.