V4L/DVB (5920): ivtv: fix incorrect fw size report.
authorHans Verkuil <hverkuil@xs4all.nl>
Sun, 22 Jul 2007 14:12:26 +0000 (11:12 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Mon, 30 Jul 2007 19:26:35 +0000 (16:26 -0300)
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/ivtv/ivtv-firmware.c

index d0feabf..425eb10 100644 (file)
@@ -72,8 +72,8 @@ retry:
                        dst++;
                        src++;
                }
-               release_firmware(fw);
                IVTV_INFO("Loaded %s firmware (%zd bytes)\n", fn, fw->size);
+               release_firmware(fw);
                return size;
        }
        IVTV_ERR("Unable to open firmware %s (must be %ld bytes)\n", fn, size);