diff options
author | Zhang Qilong <[email protected]> | 2020-11-23 18:21:18 +0800 |
---|---|---|
committer | Krzysztof Kozlowski <[email protected]> | 2021-01-03 17:14:02 +0100 |
commit | a2d522ff0f5cc26915c4ccee9457fd4b4e1edc48 (patch) | |
tree | 24bb5f5b24ff2e55c948863e3031c2e18358f883 /net/unix/unix_bpf.c | |
parent | 5c8fe583cce542aa0b84adc939ce85293de36e5e (diff) |
memory: mtk-smi: Fix PM usage counter unbalance in mtk_smi ops
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.
Fixes: 4f0a1a1ae3519 ("memory: mtk-smi: Invoke pm runtime_callback to enable clocks")
Signed-off-by: Zhang Qilong <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Krzysztof Kozlowski <[email protected]>
Diffstat (limited to 'net/unix/unix_bpf.c')
0 files changed, 0 insertions, 0 deletions