Skip to content

Commit

Permalink
bpa10x: free sk_buff with kfree_skb
Browse files Browse the repository at this point in the history
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 <ilpo.jarvinen@helsinki.fi>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Ilpo Järvinen authored and David S. Miller committed Oct 31, 2008
1 parent a432226 commit cbafe31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/bluetooth/bpa10x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit cbafe31

Please sign in to comment.