dect
/
linux-2.6
Archived
13
0
Fork 0

[media] TTUSB DVB: ttusb_boot_dsp() needs to release_firmware() or it leaks memory

In drivers/media/dvb/ttusb-budget/dvb-ttusb-budget.c:ttusb_boot_dsp() we
need to call release_firmware(fw) before returning or we'll leak - no
matter if we succeed or fail.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
Jesper Juhl 2011-02-06 17:49:02 -03:00 committed by Mauro Carvalho Chehab
parent 19a0a296f2
commit ba0fd56a4f
1 changed files with 1 additions and 0 deletions

View File

@ -334,6 +334,7 @@ static int ttusb_boot_dsp(struct ttusb *ttusb)
err = ttusb_cmd(ttusb, b, 4, 0);
done:
release_firmware(fw);
if (err) {
dprintk("%s: usb_bulk_msg() failed, return value %i!\n",
__func__, err);