From: Dan Carpenter Date: Fri, 16 Dec 2011 20:26:00 +0000 (+0300) Subject: NFC: use kfree_skb() for sk_buffs X-Git-Tag: v3.3-rc1~182^2~44^2~62 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5b68a7ca32194e238a1dcbb24ae0a4cf61e67047;p=profile%2Fcommon%2Fkernel-common.git 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 Acked-by: Samuel Ortiz Signed-off-by: John W. Linville --- diff --git a/net/nfc/llcp/llcp.c b/net/nfc/llcp/llcp.c index f99d6b4..1d32680 100644 --- a/net/nfc/llcp/llcp.c +++ b/net/nfc/llcp/llcp.c @@ -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); }