Commit 5b68a7ca authored by Dan Carpenter's avatar Dan Carpenter Committed by John W. Linville
Browse files

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 341ee434
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment