NFC: use kfree_skb() for sk_buffs
Subsystems (3)
PATCH 2/2 NFC: use kfree_skb() for sk_buffs
This is a struct sk_buff pointer and it should be freed with kfree_skb() instead of kfree().
Signed-off-by Dan Carpenter <[email protected]>
net/nfc/llcp/llcp.c +1 -1
@@ -954,7 +954,7 @@ void nfc_llcp_unregister_device(struct nfc_dev *dev)skb_queue_purge (&local->tx_queue);destroy_workqueue (local->tx_wq);destroy_workqueue (local->rx_wq); -kfree (local->rx_pending); +kfree_skb (local->rx_pending);kfree (local); }
Hi Dan,
Quoted 4 lines · Dan Carpenter
This is a struct
sk_buffpointer and it should be freed withkfree_skb()instead ofkfree().Signed-off-by Dan Carpenter <[email protected]>
Acked-by Samuel Ortiz <[email protected]>
Thanks.
Cheers,
Samuel.
Signature · 2 lines
Intel Open Source Technology Centre http://oss.intel.com/