]> www.infradead.org Git - users/dwmw2/linux.git/commit
irqchip/gic-v3-its: Free unused vpt_page when alloc vpe table fail
authorNianyao Tang <tangnianyao@huawei.com>
Fri, 26 Jul 2019 09:32:57 +0000 (17:32 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Aug 2019 08:50:11 +0000 (10:50 +0200)
commitacc760f32a07bc0ecd653526366f2e03ae17ae32
tree8bd43a70fd8146020860344b17808b978ee4c11f
parentd0d12e58188156a2162ae54c23fe089122c0c31e
irqchip/gic-v3-its: Free unused vpt_page when alloc vpe table fail

[ Upstream commit 34f8eb92ca053cbba2887bb7e4dbf2b2cd6eb733 ]

In its_vpe_init, when its_alloc_vpe_table fails, we should free
vpt_page allocated just before, instead of vpe->vpt_page.
Let's fix it.

Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Nianyao Tang <tangnianyao@huawei.com>
Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/irqchip/irq-gic-v3-its.c