]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
powerpc/xive: add missing iounmap() in error path in xive_spapr_populate_irq_data()
authorYang Yingliang <yangyingliang@huawei.com>
Mon, 17 Oct 2022 03:23:33 +0000 (11:23 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:26:34 +0000 (13:26 +0100)
commita49c2512f82c7762a71677ec01b090431128d1ce
tree147c537f87d00e0221e820cb95a6f0a9c154831d
parent784d55947363c97b8796d451ac5c2564e859bb3f
powerpc/xive: add missing iounmap() in error path in xive_spapr_populate_irq_data()

[ Upstream commit 8b49670f3bb3f10cd4d5a6dca17f5a31b173ecdc ]

If remapping 'data->trig_page' fails, the 'data->eoi_mmio' need be unmapped
before returning from xive_spapr_populate_irq_data().

Fixes: eac1e731b59e ("powerpc/xive: guest exploitation of the XIVE interrupt controller")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20221017032333.1852406-1-yangyingliang@huawei.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/sysdev/xive/spapr.c