diff options
author | Heiner Kallweit <[email protected]> | 2021-12-15 11:14:23 +0100 |
---|---|---|
committer | Philipp Zabel <[email protected]> | 2021-12-15 11:20:30 +0100 |
commit | 92c959bae2e54ba1e2540ba5f813f7752bd76be1 (patch) | |
tree | d2cc78c6099691e87438734de84d7fed96128810 /tools/perf/scripts/python/syscall-counts.py | |
parent | 69125b4b9440be015783312e1b8753ec96febde0 (diff) |
reset: renesas: Fix Runtime PM usage
If pm_runtime_resume_and_get() fails then it returns w/o the RPM usage
counter being incremented. In this case call pm_runtime_put() in
remove() will result in a usage counter imbalance. Therefore check the
return code of pm_runtime_resume_and_get() and bail out in case of error.
Fixes: bee08559701f ("reset: renesas: Add RZ/G2L usbphy control driver")
Signed-off-by: Heiner Kallweit <[email protected]>
Reviewed-by: Biju Das <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Philipp Zabel <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions