Skip to contentSkip to conversation

bluetooth: fix memory leak Marvell BT-over-SDIO driver

PATCH In review Yoichi Yuasa 2 participants 2 messages Feb 4, 2010 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bluetooth: fix memory leak Marvell BT-over-SDIO driver

---
 drivers/bluetooth/btmrvl_sdio.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/bluetooth/btmrvl_sdio.c +1 -0
index f36defa..57d965b 100644
@@ -808,6 +808,7 @@ static int btmrvl_sdio_host_to_card(struct btmrvl_private *priv,
 
 exit:
 	sdio_release_host(card->func);
+	kfree(tmpbuf);
 
 	return ret;
 }
Signature · 1 line
1.6.6.1
maintainer
#1 lore raw

Hi Yoichi,

Quoted 10 lines
---
 drivers/bluetooth/btmrvl_sdio.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/bluetooth/btmrvl_sdio.c +0 -0
index f36defa..57d965b 100644

drivers/bluetooth/btmrvl_sdio.c static int btmrvl_sdio_host_to_card(struct btmrvl_private *priv, · line 814

Quoted 7 lines
drivers/bluetooth/btmrvl_sdio.c +1 -0
@@ -808,6 +808,7 @@ static int btmrvl_sdio_host_to_card(struct btmrvl_private *priv,
 
 exit:
 	sdio_release_host(card->func);
+	kfree(tmpbuf);
 
 	return ret;
 }

patch has been applied. Thanks.

Regards

Marcel