From: Yang Yingliang Date: Wed, 24 Aug 2022 09:36:57 +0000 (+0800) Subject: parisc: ccio-dma: Add missing iounmap in error path in ccio_probe() X-Git-Tag: v5.15.73~283 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8fd27239ca92c9d18b495df826570e184eb9eb66;p=platform%2Fkernel%2Flinux-rpi.git parisc: ccio-dma: Add missing iounmap in error path in ccio_probe() [ 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 Signed-off-by: Helge Deller Signed-off-by: Sasha Levin --- diff --git a/drivers/parisc/ccio-dma.c b/drivers/parisc/ccio-dma.c index f69ab90..6052f26 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; }