]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
Fixes for 5.10
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.10/parisc-ccio-dma-add-missing-iounmap-in-error-path-in.patch [new file with mode: 0644]
queue-5.10/series

diff --git a/queue-5.10/parisc-ccio-dma-add-missing-iounmap-in-error-path-in.patch b/queue-5.10/parisc-ccio-dma-add-missing-iounmap-in-error-path-in.patch
new file mode 100644 (file)
index 0000000..33f6b9e
--- /dev/null
@@ -0,0 +1,35 @@
+From f5d6677dbfb0406b3d3bafbd140ba366587b28ec 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 ffd5000c23d3..be81b765858b 100644
+--- a/drivers/parisc/ccio-dma.c
++++ b/drivers/parisc/ccio-dma.c
+@@ -1546,6 +1546,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 e397505ae314e5acf845bf534fb7735eb864fad8..73ae784aa7d9028cf7ce35073d8166f30ac7182d 100644 (file)
@@ -38,3 +38,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