linux/drivers/media/pci
Tom Rix 780d815dcc media: tw5864: check status of tw5864_frameinterval_get
clang static analysis reports this problem

tw5864-video.c:773:32: warning: The left expression of the compound
  assignment is an uninitialized value.
  The computed value will also be garbage
        fintv->stepwise.max.numerator *= std_max_fps;
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^

stepwise.max is set with frameinterval, which comes from

	ret = tw5864_frameinterval_get(input, &frameinterval);
	fintv->stepwise.step = frameinterval;
	fintv->stepwise.min = frameinterval;
	fintv->stepwise.max = frameinterval;
	fintv->stepwise.max.numerator *= std_max_fps;

When tw5864_frameinterval_get() fails, frameinterval is not
set. So check the status and fix another similar problem.

Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2020-08-29 08:16:16 +02:00
..
b2c2 treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
bt8xx media: bt8xx: convert tasklets to use new tasklet_setup() API 2020-08-29 08:10:52 +02:00
cobalt media: pci: cobalt-i2c.c: fix comparison of 0/1 to bool variable 2020-08-29 08:04:01 +02:00
cx18 media: cx18: Replace http links with https ones 2020-07-19 14:00:32 +02:00
cx88 media: cx88: use generic power management 2020-07-19 14:24:19 +02:00
cx23885 media: pci: cx23855-video.c: remove duplicate argument in 'or' 2020-08-29 08:03:03 +02:00
cx25821 media: cx25821: use generic power management 2020-07-19 14:23:44 +02:00
ddbridge media: ddbridge: use the ddbridge's own dummy fe driver 2020-04-14 10:29:05 +02:00
dm1105 media: delete unused proc_fs.h include 2019-10-07 07:31:36 -03:00
dt3155 media: media/pci: use vb2_video_unregister_device() 2020-08-28 15:01:54 +02:00
intel media: media/pci: use vb2_video_unregister_device() 2020-08-28 15:01:54 +02:00
ivtv media updates for v5.9-rc1 2020-08-07 13:00:53 -07:00
mantis media: mantis: convert tasklets to use new tasklet_setup() API 2020-08-29 08:11:19 +02:00
meye media: meye: fix missing pm_mchip_mode field 2020-08-06 11:27:05 +02:00
netup_unidvb treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
ngene media: ngene: convert tasklets to use new tasklet_setup() API 2020-08-29 08:11:47 +02:00
pluto2 treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
pt1 media: pci: Use dev_get_drvdata where possible 2019-07-25 06:45:10 -04:00
pt3 media: pci: Use dev_get_drvdata where possible 2019-07-25 06:45:10 -04:00
saa7134 media: media/pci: use vb2_video_unregister_device() 2020-08-28 15:01:54 +02:00
saa7146 media: media/pci: rename VFL_TYPE_GRABBER to _VIDEO 2020-02-24 16:53:50 +01:00
saa7164 media: pci: saa7164-core.c: replace if (cond) BUG() with BUG_ON() 2020-08-29 07:50:03 +02:00
smipcie media: smipcie: convert tasklets to use new tasklet_setup() API 2020-08-29 08:12:06 +02:00
solo6x10 media: solo6x10: replace http references with https 2020-07-19 07:52:59 +02:00
sta2x11 media: media/pci: use vb2_video_unregister_device() 2020-08-28 15:01:54 +02:00
ttpci media: ttpci: convert tasklets to use new tasklet_setup() API 2020-08-29 08:12:30 +02:00
tw68 media: tw68: use generic power management 2020-07-19 14:24:57 +02:00
tw686x media: media/pci: rename VFL_TYPE_GRABBER to _VIDEO 2020-02-24 16:53:50 +01:00
tw5864 media: tw5864: check status of tw5864_frameinterval_get 2020-08-29 08:16:16 +02:00
Kconfig Revert "media: Kconfig: better support hybrid TV devices" 2020-04-14 11:00:30 +02:00
Makefile