From: Adrian Bunk Date: Wed, 3 Sep 2008 20:12:25 +0000 (-0300) Subject: V4L/DVB (8843): tda10048_firmware_upload(): fix a memory leak X-Git-Tag: v2.6.27-rc6~37^2~4^2~7 X-Git-Url: http://pilppa.org/gitweb/?a=commitdiff_plain;h=877b5f4eda501ece641adbbea5d1940cbbfd4f38;p=linux-2.6-omap-h63xx.git V4L/DVB (8843): tda10048_firmware_upload(): fix a memory leak This patch fixes a memory leak ("fw" wasn't freed). Reported-by: Adrian Bunk Signed-off-by: Adrian Bunk Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/dvb/frontends/tda10048.c b/drivers/media/dvb/frontends/tda10048.c index 7727099a16f..04e7f1cc140 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__);