diff options
| author | Zhaoyang Yu <2426767509@qq.com> | 2026-03-01 16:18:54 +0000 |
|---|---|---|
| committer | Hans Verkuil <hverkuil+cisco@kernel.org> | 2026-03-16 11:51:55 +0100 |
| commit | c03222d061fc5d150d696e7c3a91e58a620c7e65 (patch) | |
| tree | d41cbaf1dd20aaa1e47c0244ac0ac14745ce4174 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | f3e969a5b54304cab6891a58d9dd8b29072bde4c (diff) | |
media: fimc: check return value of clk_enable in runtime_resume
In fimc_runtime_resume(), the return value of
clk_enable(fimc->clock[CLK_GATE]) was not checked. If enabling the clock
fails, subsequent register accesses (fimc_hw_reset() and capture/m2m
resume) may trigger a bus error or undefined behavior.
Fix this by checking the return value. If clk_enable() fails, return the
error immediately, preventing unsafe hardware access.
Signed-off-by: Zhaoyang Yu <2426767509@qq.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
