]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
dmaengine: xilinx_dma: Fix devm_platform_ioremap_resource error handling
authorSwati Agarwal <swati.agarwal@xilinx.com>
Wed, 17 Aug 2022 06:11:23 +0000 (11:41 +0530)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 23 Nov 2022 14:12:06 +0000 (15:12 +0100)
commit7b823ccefb7ee2e6507e4027d7fb5531e34faa55
tree2262ff9f6b4ece0bcac397006ee1af2cb1c69de7
parent2692c00ac9223bd80ce5cecd65df741a5400bfde
dmaengine: xilinx_dma: Fix devm_platform_ioremap_resource error handling

BugLink: https://bugs.launchpad.net/bugs/1995637
[ Upstream commit 91df7751eb890e970afc08f50b8f0fa5ea39e03d ]

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: Swati Agarwal <swati.agarwal@xilinx.com>
Link: https://lore.kernel.org/r/20220817061125.4720-2-swati.agarwal@xilinx.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/dma/xilinx/xilinx_dma.c