Skip to contentSkip to conversation

btsdio: free sk_buff with kfree_skb

PATCH In review Sergio Luis 3 participants 3 messages Oct 26, 2008 – Oct 27, 2008 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 btsdio: free sk_buff with kfree_skb

free sk_buff with kfree_skb, instead of kree

Cc Marcel Holtmann <[email protected]>

drivers/bluetooth/btsdio.c | 2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/bluetooth/btsdio.c +1 -1
index 58630cc..cda6c7c 100644
@@ -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;
 	}
 
maintainer
#2 lore raw

Hi Dave,

Quoted 6 lines
Quoted 3 lines

free sk_buff with kfree_skb, instead of kree

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