mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 06:33:07 +00:00
dmaengine: ste_dma40: Fix PM disable depth imbalance in d40_probe
[ Upstream commit 0618c077a8
]
The pm_runtime_enable will increase power disable depth. Thus
a pairing decrement is needed on the error handling path to
keep it balanced according to context.
We fix it by calling pm_runtime_disable when error returns.
Signed-off-by: Zhang Shurong <zhang_shurong@foxmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/tencent_DD2D371DB5925B4B602B1E1D0A5FA88F1208@qq.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
39d2c10367
commit
4bdde4dca0
1 changed files with 1 additions and 0 deletions
|
@ -3697,6 +3697,7 @@ static int __init d40_probe(struct platform_device *pdev)
|
||||||
regulator_disable(base->lcpa_regulator);
|
regulator_disable(base->lcpa_regulator);
|
||||||
regulator_put(base->lcpa_regulator);
|
regulator_put(base->lcpa_regulator);
|
||||||
}
|
}
|
||||||
|
pm_runtime_disable(base->dev);
|
||||||
|
|
||||||
kfree(base->lcla_pool.alloc_map);
|
kfree(base->lcla_pool.alloc_map);
|
||||||
kfree(base->lookup_log_chans);
|
kfree(base->lookup_log_chans);
|
||||||
|
|
Loading…
Reference in a new issue