Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Dan Carpenter and committed by
John W. Linville
5b68a7ca 341ee434

+1 -1
+1 -1
net/nfc/llcp/llcp.c
··· 954 954 skb_queue_purge(&local->tx_queue); 955 955 destroy_workqueue(local->tx_wq); 956 956 destroy_workqueue(local->rx_wq); 957 - kfree(local->rx_pending); 957 + kfree_skb(local->rx_pending); 958 958 kfree(local); 959 959 } 960 960