uio: pruss: fix missing iounmap() in pruss_probe()
authorYang Yingliang <yangyingliang@huawei.com>
Tue, 8 Aug 2023 12:38:27 +0000 (20:38 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Aug 2023 11:41:55 +0000 (13:41 +0200)
commit979ca1ca1f2c87386deffbeb01767bb40448b4a1
treec08a12b709baef9ef457ae9bd2e12ee2e463652b
parente75850b4573a092078d5ff1493d3d9ee16b98821
uio: pruss: fix missing iounmap() in pruss_probe()

platform_get_irq() is called after ioremap(), if it fails,
iounmap() needs be called in error the path.

Fixes: 2fd84b9b839c ("uio: pruss: fix to check return value of platform_get_irq() in pruss_probe()")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20230808123827.560603-1-yangyingliang@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/uio/uio_pruss.c