Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 985059c7 authored by Yang Yingliang's avatar Yang Yingliang Committed by Sasha Levin
Browse files

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



[ Upstream commit fffdaba402cea79b8d219355487d342ec23f91c6 ]

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>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 1b20c28d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -3715,6 +3715,9 @@ failure:

		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);