summaryrefslogtreecommitdiffstats
path: root/net/rxrpc/skbuff.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2016-08-30 09:49:29 +0100
committerDavid Howells <dhowells@redhat.com>2016-08-30 16:02:36 +0100
commite34d4234b0b77a8a8b6dd7cf29aff468c288d9e4 (patch)
treec76b81204bb3b7e0294dc688a2f7ff0f970b83ad /net/rxrpc/skbuff.c
parentf5c17aaeb2aee9b6c30d082bbe652a7e5589adff (diff)
downloadlinux-stable-e34d4234b0b77a8a8b6dd7cf29aff468c288d9e4.tar.gz
linux-stable-e34d4234b0b77a8a8b6dd7cf29aff468c288d9e4.tar.bz2
linux-stable-e34d4234b0b77a8a8b6dd7cf29aff468c288d9e4.zip
rxrpc: Trace rxrpc_call usage
Add a trace event for debuging rxrpc_call struct usage. Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'net/rxrpc/skbuff.c')
-rw-r--r--net/rxrpc/skbuff.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/net/rxrpc/skbuff.c b/net/rxrpc/skbuff.c
index fbd8c74d9505..20529205bb8c 100644
--- a/net/rxrpc/skbuff.c
+++ b/net/rxrpc/skbuff.c
@@ -140,9 +140,7 @@ void rxrpc_packet_destructor(struct sk_buff *skb)
_enter("%p{%p}", skb, call);
if (call) {
- if (atomic_dec_return(&call->skb_count) < 0)
- BUG();
- rxrpc_put_call(call);
+ rxrpc_put_call_for_skb(call, skb);
sp->call = NULL;
}