Commit fffdaba4 authored by Yang Yingliang's avatar Yang Yingliang Committed by Vinod Koul
Browse files

dmaengine: stedma40: add missing iounmap() on error in d40_probe()



Add the missing iounmap() before return from d40_probe()
in the error handling case.

Fixes: 8d318a50 ("DMAENGINE: Support for ST-Ericssons DMA40 block v3")
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Reviewed-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20210518141108.1324127-1-yangyingliang@huawei.com


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 8e2e4f3c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -3675,6 +3675,9 @@ static int __init d40_probe(struct platform_device *pdev)

	kfree(base->lcla_pool.base_unaligned);

	if (base->lcpa_base)
		iounmap(base->lcpa_base);

	if (base->phy_lcpa)
		release_mem_region(base->phy_lcpa,
				   base->lcpa_size);