]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: shdma: Fix runtime PM imbalance on error
authorYongzhi Liu <lyz_cs@pku.edu.cn>
Sun, 16 Jan 2022 05:34:56 +0000 (21:34 -0800)
committerVinod Koul <vkoul@kernel.org>
Tue, 15 Feb 2022 05:34:16 +0000 (11:04 +0530)
commitbb985631ca7273a50b65cc4a9e709f8583873a0d
tree6d30f18cee1c13a1c2157cc6a0002fe792e7b8c5
parentc53e0e1e5025ae82334243ddd118a7e27bb8222c
dmaengine: shdma: Fix runtime PM imbalance on error

pm_runtime_get_() increments the runtime PM usage counter even
when it returns an error code, thus a matching decrement is needed on
the error handling path to keep the counter balanced.

Signed-off-by: Yongzhi Liu <lyz_cs@pku.edu.cn>
Link: https://lore.kernel.org/r/1642311296-87020-1-git-send-email-lyz_cs@pku.edu.cn
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/sh/shdma-base.c