Commit 16c61add authored by Adrian Bunk's avatar Adrian Bunk Committed by David S. Miller

[RXRPC] net/rxrpc/ar-connection.c: fix NULL dereference

This patch fixes a NULL dereference spotted by the Coverity checker.
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7769f406
...@@ -211,7 +211,7 @@ static struct rxrpc_connection *rxrpc_alloc_connection(gfp_t gfp) ...@@ -211,7 +211,7 @@ static struct rxrpc_connection *rxrpc_alloc_connection(gfp_t gfp)
conn->header_size = sizeof(struct rxrpc_header); 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; return conn;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment