parisc: ccio-dma: Add missing iounmap in error path in ccio_probe()
authorYang Yingliang <yangyingliang@huawei.com>
Wed, 24 Aug 2022 09:36:57 +0000 (17:36 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Sep 2022 08:55:44 +0000 (10:55 +0200)
commitac021700ca6860b6aa5784b206ea24253e7c78a0
treefed677fbc4043807bcf8075da8d27144d3192a16
parent34634df648e64c58fa518c0dd3b343815e1d7248
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 <yangyingliang@huawei.com>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/parisc/ccio-dma.c