[patch 09/36] btsdio: free sk_buff with kfree_skb

From: Greg KH
Date: Wed Feb 18 2009 - 17:37:47 EST


2.6.27-stable review patch. If anyone has any objections, please let us know.

------------------

From: Sergio Luis <sergio@xxxxxxxxxxxxxx>

commit cbfd24a75f98fe731547d3bc995f3a1f1fed6b20 upstream.

free sk_buff with kfree_skb, instead of kree

Signed-off-by: Sergio Luis <sergio@xxxxxxxxxxxxxx>
Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>
Cc: Tomas Winkler <tomas.winkler@xxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxx>

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

--- a/drivers/bluetooth/btsdio.c
+++ b/drivers/bluetooth/btsdio.c
@@ -153,7 +153,7 @@ static int btsdio_rx_packet(struct btsdi

err = sdio_readsb(data->func, skb->data, REG_RDAT, len - 4);
if (err < 0) {
- kfree(skb);
+ kfree_skb(skb);
return err;
}


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/