From: Malcolm Priestley <tvboxspy@gmail.com>
To: Jesper Juhl <jj@chaosbits.net>
Cc: "Mauro Carvalho Chehab" <mchehab@infradead.org>,
"David Härdeman" <david@hardeman.nu>,
"Jarod Wilson" <jarod@redhat.com>,
linux-kernel@vger.kernel.org, linux-media@vger.kernel.org
Subject: Re: [PATCH][media] DVB, USB, lmedm04: Fix firmware mem leak in lme_firmware_switch()
Date: Thu, 07 Apr 2011 20:56:25 +0100 [thread overview]
Message-ID: <1302206185.2846.2.camel@localhost> (raw)
In-Reply-To: <alpine.LNX.2.00.1104072142540.1538@swampdragon.chaosbits.net>
On Thu, 2011-04-07 at 21:46 +0200, Jesper Juhl wrote:
> Don't leak 'fw' in
> drivers/media/dvb/dvb-usb/lmedm04.c::lme_firmware_switch() by failing to
> call release_firmware().
>
> Signed-off-by: Jesper Juhl <jj@chaosbits.net>
> ---
> lmedm04.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> compile tested only
>
> diff --git a/drivers/media/dvb/dvb-usb/lmedm04.c b/drivers/media/dvb/dvb-usb/lmedm04.c
> index cd26e7c..d7cc625 100644
> --- a/drivers/media/dvb/dvb-usb/lmedm04.c
> +++ b/drivers/media/dvb/dvb-usb/lmedm04.c
> @@ -799,7 +799,7 @@ static int lme_firmware_switch(struct usb_device *udev, int cold)
> if (cold) {
> info("FRM Changing to %s firmware", fw_lme);
> lme_coldreset(udev);
> - return -ENODEV;
> + ret = -ENODEV;
> }
>
> release_firmware(fw);
This has already been fixed in this commit
http://git.linuxtv.org/media_tree.git?a=commit;h=b328817a2a391d1e879c4252cd3f11a352d3f3bc
next prev parent reply other threads:[~2011-04-07 19:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-07 19:46 [PATCH][media] DVB, USB, lmedm04: Fix firmware mem leak in lme_firmware_switch() Jesper Juhl
2011-04-07 19:56 ` Malcolm Priestley [this message]
2011-04-07 19:59 ` Jesper Juhl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1302206185.2846.2.camel@localhost \
--to=tvboxspy@gmail.com \
--cc=david@hardeman.nu \
--cc=jarod@redhat.com \
--cc=jj@chaosbits.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.