diff options
| author | Myeonghun Pak <mhun512@gmail.com> | 2026-09-13 00:10:33 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-09-16 19:18:27 +0100 |
| commit | f1d6f7d25fe88ee49aaad96c8649e090fc3a4b68 (patch) | |
| tree | e86692168a5490330dd4906702de957f54f987cd /tools/lib/python | |
| parent | 469600d5d292b1482c90dd6853555821d11b8c5f (diff) | |
| download | linux-next-f1d6f7d25fe88ee49aaad96c8649e090fc3a4b68.tar.gz linux-next-f1d6f7d25fe88ee49aaad96c8649e090fc3a4b68.zip | |
usb: chipidea: tegra: disable runtime PM on resume failure
tegra_usb_probe() enables runtime PM before resuming the device. If
pm_runtime_resume_and_get() fails, probe returns without disabling runtime
PM. The later error paths reach pm_runtime_force_suspend(), but this early
return bypasses that cleanup.
Disable runtime PM before returning the resume error. Do not use the
fail_power_off path: the failed resume did not retain a usage reference,
so its pm_runtime_put_sync_suspend() would be unbalanced.
This issue was identified during our ongoing static-analysis research while
reviewing kernel code.
Fixes: 8b85e11c1a7a ("usb: chipidea: tegra: Add runtime PM and OPP support")
Cc: stable <stable@kernel.org>
Assisted-by: OpenAI:GPT-5.6
Co-developed-by: Ijae Kim <ae878000@gmail.com>
Signed-off-by: Ijae Kim <ae878000@gmail.com>
Signed-off-by: Myeonghun Pak <mhun512@gmail.com>
Acked-by: Peter Chen <peter.chen@kernel.org>
Link: https://patch.msgid.link/20260913041033.25144-1-mhun512@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
