kernel_optimize_test/drivers/media/v4l2-core
Hans Verkuil e3a2e20ed5 media: v4l2-dv-timings.c: fix wrong condition in two for-loops
[ Upstream commit 4108b3e6db31acc4c68133290bbcc87d4db905c9 ]

These for-loops should test against v4l2_dv_timings_presets[i].bt.width,
not if i < v4l2_dv_timings_presets[i].bt.width. Luckily nothing ever broke,
since the smallest width is still a lot higher than the total number of
presets, but it is wrong.

The last item in the presets array is all 0, so the for-loop must stop
when it reaches that sentinel.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Reported-by: Krzysztof Hałasa <khalasa@piap.pl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-09-18 13:40:24 +02:00
..
Kconfig
Makefile
tuner-core.c
v4l2-async.c media: v4l2-async: Clean v4l2_async_notifier_add_fwnode_remote_subdev 2021-07-14 16:56:11 +02:00
v4l2-clk.c
v4l2-common.c
v4l2-compat-ioctl32.c
v4l2-ctrls.c media: v4l2-ctrls.c: fix race condition in hdl->requests list 2021-05-14 09:50:25 +02:00
v4l2-dev.c
v4l2-device.c
v4l2-dv-timings.c media: v4l2-dv-timings.c: fix wrong condition in two for-loops 2021-09-18 13:40:24 +02:00
v4l2-event.c
v4l2-fh.c media: v4l2-core: Avoid the dangling pointer in v4l2_fh_release 2021-07-14 16:55:53 +02:00
v4l2-flash-led-class.c
v4l2-fwnode.c
v4l2-h264.c
v4l2-i2c.c
v4l2-ioctl.c
v4l2-jpeg.c
v4l2-mc.c
v4l2-mem2mem.c
v4l2-spi.c
v4l2-subdev.c media: subdev: remove VIDIOC_DQEVENT_TIME32 handling 2021-07-14 16:56:07 +02:00
v4l2-trace.c
videobuf-core.c
videobuf-dma-contig.c
videobuf-dma-sg.c
videobuf-vmalloc.c