diff options
author | Zhang Qilong <zhangqilong3@huawei.com> | 2020-11-02 22:33:21 +0800 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2020-11-30 02:18:06 +0100 |
commit | b2f6cb78eaa1cad57dd3fe11d0458cd4fae9a584 (patch) | |
tree | 408828f07645d19050757a1f6683d25e93ef0dab /lib/btree.c | |
parent | 7776bcd241e08e13ef009926c6dea84dc3b2f8ff (diff) |
power: supply: bq24190_charger: fix reference leak
pm_runtime_get_sync will increment pm usage counter even it
failed. Forgetting to call pm_runtime_put_noidle will result
in reference leak in callers(bq24190_sysfs_show,
bq24190_charger_get_property, bq24190_charger_set_property,
bq24190_battery_get_property, bq24190_battery_set_property),
so we should fix it.
Fixes: f385e6e2a1532 ("power: bq24190_charger: Use PM runtime autosuspend")
Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'lib/btree.c')
0 files changed, 0 insertions, 0 deletions