mirror of https://gitee.com/openkylin/linux.git
V4L/DVB (5920): ivtv: fix incorrect fw size report.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
parent
5a338c38ce
commit
be9a5c7d9a
|
@ -72,8 +72,8 @@ static int load_fw_direct(const char *fn, volatile u8 __iomem *mem, struct ivtv
|
||||||
dst++;
|
dst++;
|
||||||
src++;
|
src++;
|
||||||
}
|
}
|
||||||
release_firmware(fw);
|
|
||||||
IVTV_INFO("Loaded %s firmware (%zd bytes)\n", fn, fw->size);
|
IVTV_INFO("Loaded %s firmware (%zd bytes)\n", fn, fw->size);
|
||||||
|
release_firmware(fw);
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
IVTV_ERR("Unable to open firmware %s (must be %ld bytes)\n", fn, size);
|
IVTV_ERR("Unable to open firmware %s (must be %ld bytes)\n", fn, size);
|
||||||
|
|
Loading…
Reference in New Issue