bpa10x: free sk_buff with kfree_skb
authorIlpo Järvinen <[email protected]>
Fri, 31 Oct 2008 07:40:19 +0000 (00:40 -0700)
committerDavid S. Miller <[email protected]>
Fri, 31 Oct 2008 07:40:19 +0000 (00:40 -0700)
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 <[email protected]>
Acked-by: Marcel Holtmann <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/bluetooth/bpa10x.c

index 32f3a8ed8d3d20e568e5547a48b559537de5fac1..b936d8ce2728836c2ba3c214a2cf93960886187f 100644 (file)
@@ -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);
 }