diff options
| author | 2026-06-04 06:43:14 +0000 | |
|---|---|---|
| committer | 2026-09-29 12:07:37 -0400 | |
| commit | 1c4f9480473917558908c083d1293b4ebb3d50c5 (patch) | |
| tree | 17bfb12419eaa1679c1a649dd1c08169022219eb /scripts/Makefile.thinlto | |
| parent | clk: si521xx: restore cache_only on regcache_sync() failure in resume (diff) | |
clk: starfive: jh7110-isp: fix refcount leak in jh7110_ispcrg_probe()
In jh7110_ispcrg_probe(), the error path for pm_runtime_get_sync()
failure directly returns without releasing the runtime PM reference
count. The call to __pm_runtime_resume() increments the usage count
unconditionally before attempting to resume, and does not decrement it
on failure. Thus the leaked reference makes it impossible to suspend
the device later.
All other error paths correctly jump to err_exit and call
pm_runtime_put_sync(). Fix this by replacing pm_runtime_get_sync()
with pm_runtime_resume_and_get(), which properly balances the
reference count on error.
Cc: stable@vger.kernel.org
Fixes: 81279f5d0812 ("clk: starfive: Add StarFive JH7110 Image-Signal-Process clock driver")
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
Reviewed-by: Hal Feng <hal.feng@starfivetech.com>
Signed-off-by: Brian Masney <bmasney@redhat.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
