V4L/DVB (8843): tda10048_firmware_upload(): fix a memory leak
[linux-2.6.git] / drivers / media / dvb / frontends / tda10048.c
index 7727099..04e7f1c 100644 (file)
@@ -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__);