2010-02-04 00:55:51

by Yoichi Yuasa

[permalink] [raw]
Subject: [PATCH] bluetooth: fix memory leak Marvell BT-over-SDIO driver

Signed-off-by: Yoichi Yuasa <[email protected]>
---
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


2010-02-04 03:09:31

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [PATCH] bluetooth: fix memory leak Marvell BT-over-SDIO driver

Hi Yoichi,

> Signed-off-by: Yoichi Yuasa <[email protected]>
> ---
> 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