* [Bluez-devel] [PATCH] fix freeing of skbs in btsdio_rx_packet(); drivers/bluetooth/btsdio.c
@ 2007-11-07 18:32 Roel Kluin
0 siblings, 0 replies; only message in thread
From: Roel Kluin @ 2007-11-07 18:32 UTC (permalink / raw)
To: bluez-devel
Free skbs with kfree_skb rather than kfree
Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
---
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
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-11-07 18:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-07 18:32 [Bluez-devel] [PATCH] fix freeing of skbs in btsdio_rx_packet(); drivers/bluetooth/btsdio.c Roel Kluin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).