diff options
author | Navid Emamdoost <[email protected]> | 2020-06-04 22:00:52 -0500 |
---|---|---|
committer | Linus Walleij <[email protected]> | 2020-06-16 10:38:07 +0200 |
commit | 861254d826499944cb4d9b5a15f5a794a6b99a69 (patch) | |
tree | 530f7efcb21503f93d4717e5c1ba34f9df7cab9e /tools/perf/scripts/python/syscall-counts.py | |
parent | e6f390a834b56583e6fc0949822644ce92fbb107 (diff) |
gpio: arizona: put pm_runtime in case of failure
Calling pm_runtime_get_sync increments the counter even in case of
failure, causing incorrect ref count if pm_runtime_put is not called in
error handling paths. Call pm_runtime_put if pm_runtime_get_sync fails.
Signed-off-by: Navid Emamdoost <[email protected]>
Acked-by: Charles Keepax <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions