diff options
author | Qiushi Wu <[email protected]> | 2020-06-13 15:51:58 -0500 |
---|---|---|
committer | Mark Brown <[email protected]> | 2020-06-18 17:21:58 +0100 |
commit | f141a422159a199f4c8dedb7e0df55b3b2cf16cd (patch) | |
tree | 8125facb9630eb9ffad68503be8a1a753c37cf97 /tools/perf/scripts/python/powerpc-hcalls.py | |
parent | 9f7041b71a2f5defc1629368e7dbe83a9c6ea388 (diff) |
ASoC: rockchip: Fix a reference count leak.
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.
Fixes: fc05a5b22253 ("ASoC: rockchip: add support for pdm controller")
Signed-off-by: Qiushi Wu <[email protected]>
Reviewed-by: Heiko Stuebner <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/powerpc-hcalls.py')
0 files changed, 0 insertions, 0 deletions