mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
[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 <bunk@stusta.de> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
7769f4064c
commit
16c61add51
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue