diff options
author | Zhang Qilong <[email protected]> | 2020-12-02 22:53:20 +0800 |
---|---|---|
committer | Guenter Roeck <[email protected]> | 2020-12-02 17:41:39 -0800 |
commit | bce776f10069c806290eaac712ba73432ae8ecd7 (patch) | |
tree | e4b7b899184fcc04f47eb74b5f71e22c13e01473 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | b65054597872ce3aefbc6a666385eabdf9e288da (diff) |
hwmon: (ina3221) Fix PM usage counter unbalance in ina3221_write_enable
pm_runtime_get_sync will increment pm usage counter
even it failed. Forgetting to putting operation will
result in reference leak here. We fix it by replacing
it with pm_runtime_resume_and_get to keep usage counter
balanced. It depends on the mainline commit[PM: runtime:
Add pm_runtime_resume_and_get to deal with usagecounter].
Fixes: 323aeb0eb5d9a ("hwmon: (ina3221) Add PM runtime support")
Signed-off-by: Zhang Qilong <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions