public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] bluetooth: fix memory leak Marvell BT-over-SDIO driver
@ 2010-02-04  0:55 Yoichi Yuasa
  2010-02-04  3:09 ` Marcel Holtmann
  0 siblings, 1 reply; 2+ messages in thread
From: Yoichi Yuasa @ 2010-02-04  0:55 UTC (permalink / raw)
  To: Marcel Holtmann; +Cc: yuasa, linux-bluetooth

Signed-off-by: Yoichi Yuasa <yuasa@linux-mips.org>
---
 drivers/bluetooth/btmrvl_sdio.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/bluetooth/btmrvl_sdio.c b/drivers/bluetooth/btmrvl_sdio.c
index f36defa..57d965b 100644
--- a/drivers/bluetooth/btmrvl_sdio.c
+++ b/drivers/bluetooth/btmrvl_sdio.c
@@ -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;
 }
-- 
1.6.6.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] bluetooth: fix memory leak Marvell BT-over-SDIO driver
  2010-02-04  0:55 [PATCH] bluetooth: fix memory leak Marvell BT-over-SDIO driver Yoichi Yuasa
@ 2010-02-04  3:09 ` Marcel Holtmann
  0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2010-02-04  3:09 UTC (permalink / raw)
  To: Yoichi Yuasa; +Cc: linux-bluetooth

Hi Yoichi,

> Signed-off-by: Yoichi Yuasa <yuasa@linux-mips.org>
> ---
>  drivers/bluetooth/btmrvl_sdio.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/bluetooth/btmrvl_sdio.c b/drivers/bluetooth/btmrvl_sdio.c
> index f36defa..57d965b 100644
> --- a/drivers/bluetooth/btmrvl_sdio.c
> +++ b/drivers/bluetooth/btmrvl_sdio.c
> @@ -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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-02-04  3:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-04  0:55 [PATCH] bluetooth: fix memory leak Marvell BT-over-SDIO driver Yoichi Yuasa
2010-02-04  3:09 ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox