Skip to content

Commit

Permalink
NFC: use kfree_skb() for sk_buffs
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and John W. Linville committed Dec 19, 2011
1 parent 341ee43 commit 5b68a7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/nfc/llcp/llcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 5b68a7c

Please sign in to comment.