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: MMI-PSA29.97-13-9~41027^2~3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=be9a5c7d9a04349c137610c72e3a74a5352dccf5;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.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 d0feabf93080..425eb1063904 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);