Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4ebaa4ed authored by Dan Carpenter's avatar Dan Carpenter Committed by Marcel Holtmann
Browse files

Bluetooth: Fix kfree() => kfree_skb() in hci_ath.c



sk_buffs have to be freed with kfree_skb() instead of kfree().

Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Acked-by: default avatarGustavo F. Padovan <padovan@profusion.mobi>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 2f8362af
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -163,7 +163,7 @@ static int ath_enqueue(struct hci_uart *hu, struct sk_buff *skb)
	struct ath_struct *ath = hu->priv;
	struct ath_struct *ath = hu->priv;


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