Commit 6bc3462f authored by Swati Agarwal's avatar Swati Agarwal Committed by Jialin Zhang
Browse files

dmaengine: xilinx_dma: Fix devm_platform_ioremap_resource error handling

stable inclusion
from stable-v5.10.148
commit 789e590cb8c4021de0c1ec0fcdae7e4615e4f3e7
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I6D0WL

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=789e590cb8c4021de0c1ec0fcdae7e4615e4f3e7



--------------------------------

[ Upstream commit 91df7751 ]

Add missing cleanup in devm_platform_ioremap_resource().
When probe fails remove dma channel resources and disable clocks in
accordance with the order of resources allocated .

Signed-off-by: default avatarSwati Agarwal <swati.agarwal@xilinx.com>
Link: https://lore.kernel.org/r/20220817061125.4720-2-swati.agarwal@xilinx.com


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
Reviewed-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent fdf566ba
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment