From: Ilpo Järvinen Date: Fri, 31 Oct 2008 07:40:19 +0000 (-0700) Subject: bpa10x: free sk_buff with kfree_skb X-Git-Tag: MMI-PSA29.97-13-9~30905^2~27 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cbafe312ef4a263e9aa36786bc67e1e6d959872b;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git bpa10x: free sk_buff with kfree_skb Inspired by Sergio Luis' similar patches, I finally found a case which is trivial enough that spatch won't choke on it. Signed-off-by: Ilpo Järvinen Acked-by: Marcel Holtmann Signed-off-by: David S. Miller --- diff --git a/drivers/bluetooth/bpa10x.c b/drivers/bluetooth/bpa10x.c index 32f3a8ed8d3d..b936d8ce2728 100644 --- a/drivers/bluetooth/bpa10x.c +++ b/drivers/bluetooth/bpa10x.c @@ -443,8 +443,8 @@ static void bpa10x_destruct(struct hci_dev *hdev) BT_DBG("%s", hdev->name); - kfree(data->rx_skb[0]); - kfree(data->rx_skb[1]); + kfree_skb(data->rx_skb[0]); + kfree_skb(data->rx_skb[1]); kfree(data); }