]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
Fixes for 4.4
authorSasha Levin <sashal@kernel.org>
Fri, 18 Jun 2021 11:47:19 +0000 (07:47 -0400)
committerSasha Levin <sashal@kernel.org>
Fri, 18 Jun 2021 11:47:19 +0000 (07:47 -0400)
Signed-off-by: Sasha Levin <sashal@kernel.org>
queue-4.4/dmaengine-stedma40-add-missing-iounmap-on-error-in-d.patch [new file with mode: 0644]
queue-4.4/series

diff --git a/queue-4.4/dmaengine-stedma40-add-missing-iounmap-on-error-in-d.patch b/queue-4.4/dmaengine-stedma40-add-missing-iounmap-on-error-in-d.patch
new file mode 100644 (file)
index 0000000..4708018
--- /dev/null
@@ -0,0 +1,40 @@
+From 2cedb283f5af950573157565f58636ac71b59152 Mon Sep 17 00:00:00 2001
+From: Sasha Levin <sashal@kernel.org>
+Date: Tue, 18 May 2021 22:11:08 +0800
+Subject: dmaengine: stedma40: add missing iounmap() on error in d40_probe()
+
+From: Yang Yingliang <yangyingliang@huawei.com>
+
+[ 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>
+---
+ drivers/dma/ste_dma40.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c
+index 0fede051f4e1..e6d3ed1de374 100644
+--- a/drivers/dma/ste_dma40.c
++++ b/drivers/dma/ste_dma40.c
+@@ -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);
+-- 
+2.30.2
+
index 7e1ce25df05a044b4ff0146e266b69f587731683..0dae9e86bf15300538cba8ddd8659cf0342f0684 100644 (file)
@@ -11,3 +11,4 @@ rtnetlink-fix-missing-error-code-in-rtnl_bridge_noti.patch
 net-x25-return-the-correct-errno-code.patch
 net-return-the-correct-errno-code.patch
 fib-return-the-correct-errno-code.patch
+dmaengine-stedma40-add-missing-iounmap-on-error-in-d.patch