diff options
| author | Sven Püschel <s.pueschel@pengutronix.de> | 2026-05-21 01:44:11 +0300 |
|---|---|---|
| committer | Hans Verkuil <hverkuil+cisco@kernel.org> | 2026-05-21 13:32:19 +0300 |
| commit | 65017e26c065d1240b0512c15867ef1128034fd8 (patch) | |
| tree | bb9f52d41191dd9dde31c95ae137d9a4bdc2d874 /include/linux | |
| parent | 2c225846271fc6b4f7e2a34271ebe828ed461772 (diff) | |
| download | linux-65017e26c065d1240b0512c15867ef1128034fd8.tar.xz | |
media: rockchip: rga: fix too small buffer size
Fix the command buffer size being only a quarter of the actual size.
The RGA_CMDBUF_SIZE macro was potentially intended to specify the length
of the cmdbuf u32 array pointer. But as it's used to specify the size of
the allocation, which is counted in bytes. Therefore adjust the macro
size to bytes as it better matches the variable name and adjust it's
users accordingly.
As the command buffer is relatively small, it probably didn't caused
an issue due to being smaller than a single page.
Fixes: f7e7b48e6d79 ("[media] rockchip/rga: v4l2 m2m support")
Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Sven Püschel <s.pueschel@pengutronix.de>
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
