diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2011-12-16 15:26:00 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-12-19 14:40:23 -0500 |
commit | 5b68a7ca32194e238a1dcbb24ae0a4cf61e67047 (patch) | |
tree | 07996bb966d4c3e38b107edc9985492c804672b5 /net | |
parent | 341ee4349f31e42fb0eb20d340d15309ac760308 (diff) |
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')
-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) | |||
954 | skb_queue_purge(&local->tx_queue); | 954 | skb_queue_purge(&local->tx_queue); |
955 | destroy_workqueue(local->tx_wq); | 955 | destroy_workqueue(local->tx_wq); |
956 | destroy_workqueue(local->rx_wq); | 956 | destroy_workqueue(local->rx_wq); |
957 | kfree(local->rx_pending); | 957 | kfree_skb(local->rx_pending); |
958 | kfree(local); | 958 | kfree(local); |
959 | } | 959 | } |
960 | 960 | ||