summaryrefslogtreecommitdiff
path: root/include/linux/memory/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorZhen Ni <zhen.ni@easystack.cn>2025-10-14 17:05:22 +0800
committerVinod Koul <vkoul@kernel.org>2025-12-16 20:42:35 +0530
commitb18cd8b210417f90537d914ffb96e390c85a7379 (patch)
treeafe13db4be3737ae425b3486090d0b25e6784972 /include/linux/memory/git@git.tavy.me:linux.git
parenta143545855bc2c6e1330f6f57ae375ac44af00a7 (diff)
dmaengine: fsl-edma: Fix clk leak on alloc_chan_resources failure
When fsl_edma_alloc_chan_resources() fails after clk_prepare_enable(), the error paths only free IRQs and destroy the TCD pool, but forget to call clk_disable_unprepare(). This causes the channel clock to remain enabled, leaking power and resources. Fix it by disabling the channel clock in the error unwind path. Fixes: d8d4355861d8 ("dmaengine: fsl-edma: add i.MX8ULP edma support") Cc: stable@vger.kernel.org Suggested-by: Frank Li <Frank.Li@nxp.com> Signed-off-by: Zhen Ni <zhen.ni@easystack.cn> Reviewed-by: Frank Li <Frank.Li@nxp.com> Link: https://patch.msgid.link/20251014090522.827726-1-zhen.ni@easystack.cn Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'include/linux/memory/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions