diff options
| author | Haotian Zhang <vulab@iscas.ac.cn> | 2025-11-23 23:43:15 +0800 |
|---|---|---|
| committer | Stephen Boyd <sboyd@kernel.org> | 2026-01-22 17:46:53 -0800 |
| commit | aa2ad19210a6a444111bce55e8b69579f29318fb (patch) | |
| tree | 5d34efd51a0dec579967960ea96bcab72a3251fc /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git | |
| parent | 963bb1866c2cf3f599dcf6d57bde35fb6fb42ec4 (diff) | |
clk: mediatek: Fix error handling in runtime PM setup
devm_pm_runtime_enable() can fail due to memory allocation. The current
code ignores its return value, and when pm_runtime_resume_and_get() fails,
it returns directly without unmapping the shared_io region.
Add error handling for devm_pm_runtime_enable(). Reorder cleanup labels
to properly unmap shared_io on pm_runtime_resume_and_get() failure.
Fixes: 2f7b1d8b5505 ("clk: mediatek: Do a runtime PM get on controllers during probe")
Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
