[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0810271821340.7072@wrl-59.cs.helsinki.fi>
Date: Wed, 29 Oct 2008 22:05:14 +0200 (EET)
From: "Ilpo Järvinen" <ilpo.jarvinen@...sinki.fi>
To: David Miller <davem@...emloft.net>
cc: Netdev <netdev@...r.kernel.org>, marcel@...tmann.org
Subject: [PATCH] bpa10x: free sk_buff with kfree_skb
On Sun, 26 Oct 2008, David Miller wrote:
> 2) Couple places trying to pass sk_buff to kfree() instead of
> kfree_skb(). Fixed by Sergio Luis
I tried with coccinelle and found one more of these, though my
other attempts with it haven't been all that successful...
--
[PATCH] bpa10x: free sk_buff with kfree_skb
Inspired by Sergio Luis' similar patches, I finally found
a case which is trivial enough that spatch won't choke
on it.
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@...sinki.fi>
---
drivers/bluetooth/bpa10x.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/bluetooth/bpa10x.c b/drivers/bluetooth/bpa10x.c
index 32f3a8e..b936d8c 100644
--- a/drivers/bluetooth/bpa10x.c
+++ b/drivers/bluetooth/bpa10x.c
@@ -443,8 +443,8 @@ static void bpa10x_destruct(struct hci_dev *hdev)
BT_DBG("%s", hdev->name);
- kfree(data->rx_skb[0]);
- kfree(data->rx_skb[1]);
+ kfree_skb(data->rx_skb[0]);
+ kfree_skb(data->rx_skb[1]);
kfree(data);
}
--
1.5.2.2
Powered by blists - more mailing lists