diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2011-12-16 21:26:00 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-12-19 20:40:23 +0100 |
commit | 5b68a7ca32194e238a1dcbb24ae0a4cf61e67047 (patch) | |
tree | 07996bb966d4c3e38b107edc9985492c804672b5 /net/nfc | |
parent | NFC: double unlock in nfc_llcp_recv_connect() (diff) | |
download | linux-5b68a7ca32194e238a1dcbb24ae0a4cf61e67047.tar.xz linux-5b68a7ca32194e238a1dcbb24ae0a4cf61e67047.zip |
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 <dan.carpenter@oracle.com>
Acked-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/nfc')
-rw-r--r-- | net/nfc/llcp/llcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/nfc/llcp/llcp.c b/net/nfc/llcp/llcp.c index f99d6b4658ed..1d32680807d6 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); } |