diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2021-05-18 22:11:08 +0800 |
---|---|---|
committer | Sasha Levin <sashal@kernel.org> | 2021-06-30 08:48:14 -0400 |
commit | 53f0b1fffafe99f40006fb1be99adf71a3472741 (patch) | |
tree | 73d008b60f3243abb2df5fd59a080b9c57ecbacb | |
parent | c74f609772465ec6c7774c60be33b495e0414dd6 (diff) | |
download | linux-stable-53f0b1fffafe99f40006fb1be99adf71a3472741.tar.gz linux-stable-53f0b1fffafe99f40006fb1be99adf71a3472741.tar.bz2 linux-stable-53f0b1fffafe99f40006fb1be99adf71a3472741.zip |
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: 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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r-- | drivers/dma/ste_dma40.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c index 3d55405c49ca..e588dc5daaa8 100644 --- a/drivers/dma/ste_dma40.c +++ b/drivers/dma/ste_dma40.c @@ -3663,6 +3663,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); |