From: Hans Verkuil Date: Sun, 22 Jul 2007 14:12:26 +0000 (-0300) Subject: V4L/DVB (5920): ivtv: fix incorrect fw size report. X-Git-Tag: v2.6.23-rc2~153^2~3 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=be9a5c7d9a04349c137610c72e3a74a5352dccf5;p=linux-2.6-omap-h63xx.git V4L/DVB (5920): ivtv: fix incorrect fw size report. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/ivtv/ivtv-firmware.c b/drivers/media/video/ivtv/ivtv-firmware.c index d0feabf9308..425eb106390 100644 --- a/drivers/media/video/ivtv/ivtv-firmware.c +++ b/drivers/media/video/ivtv/ivtv-firmware.c @@ -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);