diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-08-28 01:03:24 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-08-28 01:03:24 +0300 |
commit | eb79d0fee68a8f41047ec0b2717d2130c752a71d (patch) | |
tree | 49a60931565674cec5be15ae2f17a73a3d2eefe4 /linux/drivers/media/dvb/frontends | |
parent | 85bcb84b39a55fcb134c712f6a22c370cd3ce494 (diff) | |
download | mediapointer-dvb-s2-eb79d0fee68a8f41047ec0b2717d2130c752a71d.tar.gz mediapointer-dvb-s2-eb79d0fee68a8f41047ec0b2717d2130c752a71d.tar.bz2 |
tda10048_firmware_upload(): fix a memory leak
From: Adrian Bunk <bunk@kernel.org>
This patch fixes a memory leak ("fw" wasn't freed).
Reported-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/dvb/frontends')
-rw-r--r-- | linux/drivers/media/dvb/frontends/tda10048.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/frontends/tda10048.c b/linux/drivers/media/dvb/frontends/tda10048.c index b78d6f3a5..7a882faf5 100644 --- a/linux/drivers/media/dvb/frontends/tda10048.c +++ b/linux/drivers/media/dvb/frontends/tda10048.c @@ -303,7 +303,7 @@ static int tda10048_firmware_upload(struct dvb_frontend *fe) if (fw->size != TDA10048_DEFAULT_FIRMWARE_SIZE) { printk(KERN_ERR "%s: firmware incorrect size\n", __func__); - return -EIO; + ret = -EIO; } else { printk(KERN_INFO "%s: firmware uploading\n", __func__); |