diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2025-07-06 12:55:40 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2025-07-08 09:02:38 +0200 |
commit | 3e43442d4994c9e1e202c98129a87e330f7faaed (patch) | |
tree | e1cce86f6133bdb8f1da776fabd0565c0ca5312f /scripts/gdb/linux/utils.py | |
parent | 1610f15cba05e27ed74d42138b9bec45a315ead7 (diff) |
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: 6bc7643d1b9c ("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>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions