diff options
author | Dinghao Liu <dinghao.liu@zju.edu.cn> | 2021-04-09 11:28:05 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2021-04-12 12:40:44 +0300 |
commit | 917a3200b9f467a154999c7572af345f2470aaf4 (patch) | |
tree | b0cc757e14b3bc1d83554a755de210be21a92f62 /drivers/leds | |
parent | ea45b6008f8095db0cc09ad6e03c7785c2986197 (diff) | |
download | linux-917a3200b9f467a154999c7572af345f2470aaf4.tar.xz |
dmaengine: tegra20: Fix runtime PM imbalance on error
pm_runtime_get_sync() will increase the runtime PM counter
even it returns an error. Thus a pairing decrement is needed
to prevent refcount leak. Fix this by replacing this API with
pm_runtime_resume_and_get(), which will not change the runtime
PM counter on error.
Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Acked-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/r/20210409082805.23643-1-dinghao.liu@zju.edu.cn
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/leds')
0 files changed, 0 insertions, 0 deletions