Skip to content

Commit

Permalink
Bluetooth: Fix kfree() => kfree_skb() in hci_ath.c
Browse files Browse the repository at this point in the history
sk_buffs have to be freed with kfree_skb() instead of kfree().

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Gustavo F. Padovan <padovan@profusion.mobi>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
  • Loading branch information
Dan Carpenter authored and Marcel Holtmann committed Jul 27, 2010
1 parent 2f8362a commit 4ebaa4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/bluetooth/hci_ath.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ static int ath_enqueue(struct hci_uart *hu, struct sk_buff *skb)
struct ath_struct *ath = hu->priv;

if (bt_cb(skb)->pkt_type == HCI_SCODATA_PKT) {
kfree(skb);
kfree_skb(skb);
return 0;
}

Expand Down

0 comments on commit 4ebaa4e

Please sign in to comment.