diff options
| author | Zhaoyang Yu <2426767509@qq.com> | 2026-03-01 19:18:54 +0300 |
|---|---|---|
| committer | Hans Verkuil <hverkuil+cisco@kernel.org> | 2026-03-16 13:51:55 +0300 |
| commit | c03222d061fc5d150d696e7c3a91e58a620c7e65 (patch) | |
| tree | d41cbaf1dd20aaa1e47c0244ac0ac14745ce4174 /tools/lib/python/feat/parse_features.py | |
| parent | f3e969a5b54304cab6891a58d9dd8b29072bde4c (diff) | |
| download | linux-c03222d061fc5d150d696e7c3a91e58a620c7e65.tar.xz | |
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/lib/python/feat/parse_features.py')
0 files changed, 0 insertions, 0 deletions
