summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorAlper Ak <alperyasinak1@gmail.com>2025-12-27 11:40:37 +0300
committerHans Verkuil <hverkuil+cisco@kernel.org>2026-01-13 09:41:59 +0100
commit81f8e0e6a2e115df9274d0289779f8fca694479c (patch)
tree739a7efd783b8dd65d55c22df3f42641b67319ad /tools/perf/scripts/python/task-analyzer.py
parent5633ec763a2a18cef6c5ac9250e4f4b8786e7999 (diff)
media: rockchip: rga: Fix possible ERR_PTR dereference in rga_buf_init()
rga_get_frame() can return ERR_PTR(-EINVAL) when buffer type is unsupported or invalid. rga_buf_init() does not check the return value and unconditionally dereferences the pointer when accessing f->size. Add proper ERR_PTR checking and return the error to prevent dereferencing an invalid pointer. Fixes: 6040702ade23 ("media: rockchip: rga: allocate DMA descriptors per buffer") Cc: stable@vger.kernel.org Signed-off-by: Alper Ak <alperyasinak1@gmail.com> Reviewed-by: Michael Tretter <m.tretter@pengutronix.de> Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions