diff options
| author | Ruoyu Wang <ruoyuw560@gmail.com> | 2026-08-15 23:17:37 +0800 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-08-20 12:26:24 -0700 |
| commit | 6b9eaa61ff2df63c6eb35d5cd025e2cef0861d76 (patch) | |
| tree | 93721289204d4235550699a8e22be311004eb43d /tools/perf/scripts/python | |
| parent | a4d7fc32559568e6e01e2896a0d220750e55c2ef (diff) | |
| download | linux-6b9eaa61ff2df63c6eb35d5cd025e2cef0861d76.tar.gz linux-6b9eaa61ff2df63c6eb35d5cd025e2cef0861d76.zip | |
net: ipa: balance runtime PM reference on remove error
ipa_remove() takes a runtime PM reference before accessing IPA hardware
during teardown. If a concurrent modem start or stop keeps
ipa_modem_stop() busy across both attempts, the callback intentionally
returns without releasing the remaining resources because proceeding
with teardown could crash. That return also skips the matching
pm_runtime_put_noidle(), leaving the callback's usage-count reference
held.
Drop only this runtime PM reference before returning.
pm_runtime_put_noidle() does not request an idle transition, so the
hardware and resources retained on this exceptional path remain
untouched while the usage count stays balanced.
This issue was found by a static analysis checker and confirmed by
manual source review.
Fixes: 923a6b698447 ("net: ipa: get clock in ipa_probe()")
Signed-off-by: Ruoyu Wang <ruoyuw560@gmail.com>
Reviewed-by: Alex Elder <elder@riscstar.com>
Link: https://patch.msgid.link/20260815151737.3758320-1-ruoyuw560@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
