rxrpc: Provide more refcount helper functions
Provide refcount helper functions for connections so that the code doesn't touch local or connection usage counts directly. Also make it such that local and peer put functions can take a NULL pointer. Signed-off-by: David Howells <dhowells@redhat.com>
This commit is contained in:
@@ -580,7 +580,7 @@ static void rxrpc_post_packet_to_conn(struct rxrpc_connection *conn,
|
||||
{
|
||||
_enter("%p,%p", conn, skb);
|
||||
|
||||
atomic_inc(&conn->usage);
|
||||
rxrpc_get_connection(conn);
|
||||
skb_queue_tail(&conn->rx_queue, skb);
|
||||
rxrpc_queue_conn(conn);
|
||||
}
|
||||
|
Reference in New Issue
Block a user