]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Tue, 17 Sep 2019 16:02:18 +0000 (18:02 +0200)
commit5276336c0e9c11f0a8f6f3d370fae92250799289
tree78e9bf13d3904b5d694279fb66153aad73f175cf
parentb500ff9a2095a1ab699d6f98493c0331eed4ad24
irqchip/gic-v3-its: Free unused vpt_page when alloc vpe table fail

BugLink: https://bugs.launchpad.net/bugs/1841652
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/irqchip/irq-gic-v3-its.c