]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Mar 2022 18:01:55 +0000 (19:01 +0100)
commitfd9fa98938ed6cd0bab23852018f8a1cd2c6e360
treebb2600d7af63b45bdd3c173d5d3f48a59c2d5f90
parent147a0e71ccf96df9fc8c2ac500829d8e423ef02c
dmaengine: shdma: Fix runtime PM imbalance on error

[ Upstream commit 455896c53d5b803733ddd84e1bf8a430644439b6 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/dma/sh/shdma-base.c