Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: 8d318a50b3d7 ("DMAENGINE: Support for ST-Ericssons DMA40 block v3")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20210518141108.1324127-1-yangyingliang@huawei.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Yang Yingliang and committed by
Vinod Koul
fffdaba4 8e2e4f3c

+3
+3
drivers/dma/ste_dma40.c
··· 3675 3675 3676 3676 kfree(base->lcla_pool.base_unaligned); 3677 3677 3678 + if (base->lcpa_base) 3679 + iounmap(base->lcpa_base); 3680 + 3678 3681 if (base->phy_lcpa) 3679 3682 release_mem_region(base->phy_lcpa, 3680 3683 base->lcpa_size);