1
0
Fork 0

irqchip/gic-v3-its: Free unused vpt_page when alloc vpe table fail

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>
alistair/sunxi64-5.4-dsi
Nianyao Tang 2019-07-26 17:32:57 +08:00 committed by Marc Zyngier
parent 52f8c8b32e
commit 34f8eb92ca
1 changed files with 1 additions and 1 deletions

View File

@ -3008,7 +3008,7 @@ static int its_vpe_init(struct its_vpe *vpe)
if (!its_alloc_vpe_table(vpe_id)) {
its_vpe_id_free(vpe_id);
its_free_pending_table(vpe->vpt_page);
its_free_pending_table(vpt_page);
return -ENOMEM;
}