diff options
author | David Howells <dhowells@redhat.com> | 2023-02-08 01:11:30 +0300 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2023-02-08 02:11:20 +0300 |
commit | 16d5677ef1041beee18b5709bf5759611ec82875 (patch) | |
tree | 0274bf86bff78692435b012dcc1cf52acc634ea4 /net/rxrpc/skbuff.c | |
parent | 61d731e6538dc44abf2dca6e77098ec6e85f7cc2 (diff) | |
download | linux-16d5677ef1041beee18b5709bf5759611ec82875.tar.xz |
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
Diffstat (limited to 'net/rxrpc/skbuff.c')
-rw-r--r-- | net/rxrpc/skbuff.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/rxrpc/skbuff.c b/net/rxrpc/skbuff.c index 944320e65ea8..3bcd6ee80396 100644 --- a/net/rxrpc/skbuff.c +++ b/net/rxrpc/skbuff.c @@ -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); } } |