2007-11-07 18:32:53

by Roel Kluin

[permalink] [raw]
Subject: [Bluez-devel] [PATCH] fix freeing of skbs in btsdio_rx_packet(); drivers/bluetooth/btsdio.c

Free skbs with kfree_skb rather than kfree

Signed-off-by: Roel Kluin <[email protected]>
---
diff --git a/drivers/bluetooth/btsdio.c b/drivers/bluetooth/btsdio.c
index b786f61..df79882 100644
--- a/drivers/bluetooth/btsdio.c
+++ b/drivers/bluetooth/btsdio.c
@@ -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