linux/drivers/media/test-drivers
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
..
vicodec media: replace obsolete hans.verkuil@cisco.com alias 2024-11-08 13:38:09 +01:00
vidtv media: vidtv: Terminating the subsequent process of initialization failure 2025-04-25 15:14:28 +02:00
vimc media: vimc: skip .s_stream() for stopped entities 2025-03-05 17:40:18 +01:00
visl media: visl: Fix ERANGE error when setting enum controls 2025-02-25 11:11:06 +01:00
vivid media: vivid: fix wrong pixel_array control size 2025-07-08 09:02:38 +02:00
Kconfig media: drop CONFIG_MEDIA_CONTROLLER_REQUEST_API 2023-11-23 13:03:45 +01:00
Makefile
vim2m.c media: vim2m: Add parametized support for multiplanar API 2025-04-25 15:14:26 +02:00