2008-10-26 07:16:29

by Sergio Luis

[permalink] [raw]
Subject: [patch 1/2] btsdio: free sk_buff with kfree_skb

free sk_buff with kfree_skb, instead of kree

Signed-off-by: Sergio Luis <[email protected]>
Cc: Marcel Holtmann <[email protected]>

drivers/bluetooth/btsdio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/bluetooth/btsdio.c b/drivers/bluetooth/btsdio.c
index 58630cc..cda6c7c 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;
}



2008-10-27 08:37:42

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [patch 1/2] btsdio: free sk_buff with kfree_skb

Hi Dave,

> > free sk_buff with kfree_skb, instead of kree
> >
> > Signed-off-by: Sergio Luis <[email protected]>
>
> Since this is pretty obvious I'm applying this directly, I hope
> Marcel doesn't mind :-)

that is fine with me. No need to run this through me.

Regards

Marcel



2008-10-27 06:09:04

by David Miller

[permalink] [raw]
Subject: Re: [patch 1/2] btsdio: free sk_buff with kfree_skb

From: Sergio Luis <[email protected]>
Date: Sun, 26 Oct 2008 04:16:29 -0300

> free sk_buff with kfree_skb, instead of kree
>
> Signed-off-by: Sergio Luis <[email protected]>

Since this is pretty obvious I'm applying this directly, I hope
Marcel doesn't mind :-)