]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
Fixes for 5.4
authorSasha Levin <sashal@kernel.org>
Sun, 18 Sep 2022 23:55:45 +0000 (19:55 -0400)
committerSasha Levin <sashal@kernel.org>
Sun, 18 Sep 2022 23:55:45 +0000 (19:55 -0400)
Signed-off-by: Sasha Levin <sashal@kernel.org>
queue-5.4/parisc-ccio-dma-add-missing-iounmap-in-error-path-in.patch [new file with mode: 0644]
queue-5.4/series

diff --git a/queue-5.4/parisc-ccio-dma-add-missing-iounmap-in-error-path-in.patch b/queue-5.4/parisc-ccio-dma-add-missing-iounmap-in-error-path-in.patch
new file mode 100644 (file)
index 0000000..c8e145d
--- /dev/null
@@ -0,0 +1,35 @@
+From f431714aa38b2383b3e36e82db1bf9035bd32535 Mon Sep 17 00:00:00 2001
+From: Sasha Levin <sashal@kernel.org>
+Date: Wed, 24 Aug 2022 17:36:57 +0800
+Subject: parisc: ccio-dma: Add missing iounmap in error path in ccio_probe()
+
+From: Yang Yingliang <yangyingliang@huawei.com>
+
+[ Upstream commit 38238be4e881a5d0abbe4872b4cd6ed790be06c8 ]
+
+Add missing iounmap() before return from ccio_probe(), if ccio_init_resources()
+fails.
+
+Fixes: d46c742f827f ("parisc: ccio-dma: Handle kmalloc failure in ccio_init_resources()")
+Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
+Signed-off-by: Helge Deller <deller@gmx.de>
+Signed-off-by: Sasha Levin <sashal@kernel.org>
+---
+ drivers/parisc/ccio-dma.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/drivers/parisc/ccio-dma.c b/drivers/parisc/ccio-dma.c
+index 6209d58e9492..fdd302d0a1c9 100644
+--- a/drivers/parisc/ccio-dma.c
++++ b/drivers/parisc/ccio-dma.c
+@@ -1544,6 +1544,7 @@ static int __init ccio_probe(struct parisc_device *dev)
+       }
+       ccio_ioc_init(ioc);
+       if (ccio_init_resources(ioc)) {
++              iounmap(ioc->ioc_regs);
+               kfree(ioc);
+               return -ENOMEM;
+       }
+-- 
+2.35.1
+
index adc182106bd46de9aa27a35326c555f8e42e5f39..353e5d10f4f8326fc45c11ca1593d9efbf0477ed 100644 (file)
@@ -17,3 +17,4 @@ nfsv4-turn-off-open-by-filehandle-and-nfs-re-export-.patch
 gpio-mpc8xxx-fix-support-for-irq_type_level_low-flow.patch
 drm-meson-correct-osd1-global-alpha-value.patch
 drm-meson-fix-osd1-rgb-to-ycbcr-coefficient.patch
+parisc-ccio-dma-add-missing-iounmap-in-error-path-in.patch