linux/drivers/media/test-drivers/vivid
Hans Verkuil 3e43442d49 media: vivid: fix wrong pixel_array control size
The pixel_array control size was calculated incorrectly:
the dimensions were swapped (dims[0] should be the height), and the
values should be the width or height divided by PIXEL_ARRAY_DIV
and rounded up. So don't use roundup, but use DIV_ROUND_UP instead.

This bug is harmless in the sense that nothing will break, except that
it consumes way too much memory for this control.

Fixes: 6bc7643d1b ("media: vivid: add pixel_array test control")
Cc: <stable@vger.kernel.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2025-07-08 09:02:38 +02:00
..
Kconfig
Makefile
vivid-cec.c
vivid-cec.h
vivid-core.c
vivid-core.h
vivid-ctrls.c media: vivid: fix wrong pixel_array control size 2025-07-08 09:02:38 +02:00
vivid-ctrls.h
vivid-kthread-cap.c media: vivid: use (t,l)/wxh format for rectangle 2025-04-30 08:16:06 +02:00
vivid-kthread-cap.h
vivid-kthread-out.c
vivid-kthread-out.h
vivid-kthread-touch.c
vivid-kthread-touch.h
vivid-meta-cap.c
vivid-meta-cap.h
vivid-meta-out.c
vivid-meta-out.h
vivid-osd.c
vivid-osd.h
vivid-radio-common.c
vivid-radio-common.h
vivid-radio-rx.c
vivid-radio-rx.h
vivid-radio-tx.c
vivid-radio-tx.h
vivid-rds-gen.c
vivid-rds-gen.h
vivid-sdr-cap.c
vivid-sdr-cap.h
vivid-touch-cap.c
vivid-touch-cap.h
vivid-vbi-cap.c
vivid-vbi-cap.h
vivid-vbi-gen.c media: media/test_drivers: Replace open-coded parity calculation with parity8() 2025-06-17 10:51:35 +02:00
vivid-vbi-gen.h
vivid-vbi-out.c
vivid-vbi-out.h
vivid-vid-cap.c media: vivid: fix wrong pixel_array control size 2025-07-08 09:02:38 +02:00
vivid-vid-cap.h
vivid-vid-common.c
vivid-vid-common.h
vivid-vid-out.c
vivid-vid-out.h