Skip to contentSkip to conversation

fix freeing of skbs in btsdio_rx_packet(); drivers/bluetooth/btsdio.c

PATCH New Roel Kluin 1 participant 1 message Nov 7, 2007 Bluetooth drivers

lore
Share & tools
lore

Roel Kluin

author
#0 lore raw

PATCH 1/1 fix freeing of skbs in btsdio_rx_packet(); drivers/bluetooth/btsdio.c

Free skbs with kfree_skb rather than kfree

---

drivers/bluetooth/btsdio.c +2 -2
index b786f61..df79882 100644
@@ -152,7 +152,7 @@ static int btsdio_rx_packet(struct btsdio_data *data)
 
 	err = sdio_readsb(data->func, skb->data, REG_RDAT, len - 4);
 	if (err < 0) {
-		kfree(skb);
+		kfree_skb(skb);
 		return err;
 	}
 
@@ -163,7 +163,7 @@ static int btsdio_rx_packet(struct btsdio_data *data)
 
 	err = hci_recv_frame(skb);
 	if (err < 0) {
-		kfree(skb);
+		kfree_skb(skb);
 		return err;
 	}
 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel