NFC: use kfree_skb() for sk_buffs
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 16 Dec 2011 20:26:00 +0000 (23:26 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 19 Dec 2011 19:40:23 +0000 (14:40 -0500)
This is a struct sk_buff pointer and it should be freed with kfree_skb()
instead of kfree().

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/nfc/llcp/llcp.c

index f99d6b4658ed8477049f0275e698ed22daa18a87..1d32680807d67f3729bb19724d9c09ba2f4cc599 100644 (file)
@@ -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);
 }