diff options
| author | 2021-04-09 16:28:05 +0800 | |
|---|---|---|
| committer | 2021-04-12 15:10:44 +0530 | |
| commit | 917a3200b9f467a154999c7572af345f2470aaf4 (patch) | |
| tree | b0cc757e14b3bc1d83554a755de210be21a92f62 /include/linux/phy/git:/ssh:/git@git.zx2c4.com | |
| parent | dmaengine: Fix a double free in dma_async_device_register (diff) | |
| download | linux-dev-917a3200b9f467a154999c7572af345f2470aaf4.tar.xz linux-dev-917a3200b9f467a154999c7572af345f2470aaf4.zip | |
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 'include/linux/phy/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
