summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/tda10048.c
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@kernel.org>2008-09-03 17:12:25 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-09-03 18:37:54 -0300
commit877b5f4eda501ece641adbbea5d1940cbbfd4f38 (patch)
treea4d1afa5e27cf7301c9586fb22733f00c51412b9 /drivers/media/dvb/frontends/tda10048.c
parent8da9bae3292ea8aee803e7cda295877c361f0694 (diff)
downloadtalos-op-linux-877b5f4eda501ece641adbbea5d1940cbbfd4f38.tar.gz
talos-op-linux-877b5f4eda501ece641adbbea5d1940cbbfd4f38.zip
V4L/DVB (8843): tda10048_firmware_upload(): fix a memory leak
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@redhat.com>
Diffstat (limited to 'drivers/media/dvb/frontends/tda10048.c')
-rw-r--r--drivers/media/dvb/frontends/tda10048.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/frontends/tda10048.c b/drivers/media/dvb/frontends/tda10048.c
index 7727099a16f6..04e7f1cc1403 100644
--- a/drivers/media/dvb/frontends/tda10048.c
+++ b/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__);
OpenPOWER on IntegriCloud