bluetooth/hci_ath: kfree() => kfree_skb()
Subsystems (2)
PATCH 1/1 bluetooth/hci_ath: kfree() => kfree_skb()
sk_buffs have to be freed with kfree_skb() instead of kfree().
Signed-off-by Dan Carpenter <[email protected]>
drivers/bluetooth/hci_ath.c +1 -1
@@ -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 ; }
Hi Dan,
Quoted 9 lines · Dan Carpenter
sk_buffshave to be freed withkfree_skb()instead ofkfree().Signed-off-by Dan Carpenter <[email protected]>drivers/bluetooth/hci_ath.c +0
-0
drivers/bluetooth/hci_ath.c static int ath_enqueue(struct hci_uart *hu, struct sk_buff *skb) · line 168
Quoted 7 lines
drivers/bluetooth/hci_ath.c +1
-1@@ -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 ; }
Signature · 2 lines
Gustavo F. Padovan http://padovan.org
Marcel Holtmann
maintainerHi Dan,
Quoted 11 lines
Quoted 11 lines
sk_buffshave to be freed withkfree_skb()instead ofkfree().Signed-off-by Dan Carpenter <[email protected]>drivers/bluetooth/hci_ath.c +0
-0@@ -163,7 +163,7 @@ static int ath_enqueue(struct hci_uart *hu, struct sk_buff *skb)struct ath_struct *ath = hu->priv;
Quoted 7 lines
drivers/bluetooth/hci_ath.c static int ath_enqueue(struct hci_uart *hu, struct sk_buff *skb) · line 168
Quoted 5 lines
drivers/bluetooth/hci_ath.c +1
-1if (bt_cb (skb)->pkt_type =HCI_SCODATA_PKT ) { -kfree (skb); +kfree_skb (skb);return 0 ; }
patch has been applied. Thanks.
Regards
Marcel