diff options
author | Dinghao Liu <dinghao.liu@zju.edu.cn> | 2020-06-24 14:46:26 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-07-29 07:42:55 +0200 |
commit | 7db83a5c004b8a130813985c0ca4fac74a7fa09b (patch) | |
tree | a5efeeec1242f128ddea11dab9e9a611526d192d /include | |
parent | 5a8f385e1d06c80aa6e006777b9b04414198f039 (diff) | |
download | linux-stable-7db83a5c004b8a130813985c0ca4fac74a7fa09b.tar.gz linux-stable-7db83a5c004b8a130813985c0ca4fac74a7fa09b.tar.bz2 linux-stable-7db83a5c004b8a130813985c0ca4fac74a7fa09b.zip |
dmaengine: tegra210-adma: Fix runtime PM imbalance on error
[ Upstream commit 5b78fac4b1ba731cf4177fdbc1e3a4661521bcd0 ]
pm_runtime_get_sync() increments the runtime PM usage counter even
when it returns an error code. Thus a pairing decrement is needed on
the error handling path to keep the counter balanced.
Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Reviewed-by: Jon Hunter <jonathanh@nvidia.com>
Link: https://lore.kernel.org/r/20200624064626.19855-1-dinghao.liu@zju.edu.cn
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions