mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-29 09:16:33 +00:00
rxrpc: Use consume_skb() rather than kfree_skb_reason()
Use consume_skb() rather than kfree_skb_reason(). Reported-by: Paolo Abeni <pabeni@redhat.com> Signed-off-by: David Howells <dhowells@redhat.com> cc: Marc Dionne <marc.dionne@auristor.com> cc: linux-afs@lists.infradead.org
This commit is contained in:
parent
61d731e653
commit
16d5677ef1
@ -63,7 +63,7 @@ void rxrpc_free_skb(struct sk_buff *skb, enum rxrpc_skb_trace why)
|
||||
if (skb) {
|
||||
int n = atomic_dec_return(select_skb_count(skb));
|
||||
trace_rxrpc_skb(skb, refcount_read(&skb->users), n, why);
|
||||
kfree_skb_reason(skb, SKB_CONSUMED);
|
||||
consume_skb(skb);
|
||||
}
|
||||
}
|
||||
|
||||
@ -78,6 +78,6 @@ void rxrpc_purge_queue(struct sk_buff_head *list)
|
||||
int n = atomic_dec_return(select_skb_count(skb));
|
||||
trace_rxrpc_skb(skb, refcount_read(&skb->users), n,
|
||||
rxrpc_skb_put_purge);
|
||||
kfree_skb_reason(skb, SKB_CONSUMED);
|
||||
consume_skb(skb);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user