diff options
author | Guanrui Huang <guanrui.huang@linux.alibaba.com> | 2024-04-18 08:10:53 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2024-04-25 14:38:24 +0200 |
commit | 382d2ffe86efb1e2fa803d2cf17e5bfc34e574f3 (patch) | |
tree | 0ab1eb32133e8e8ff0361070d66166de5d449a78 /drivers/irqchip/irq-gic-v3-its.c | |
parent | cpuidle: Avoid explicit cpumask allocation on stack (diff) | |
download | linux-382d2ffe86efb1e2fa803d2cf17e5bfc34e574f3.tar.xz linux-382d2ffe86efb1e2fa803d2cf17e5bfc34e574f3.zip |
irqchip/gic-v3-its: Remove BUG_ON in its_vpe_irq_domain_alloc
This BUG_ON() is useless, because the same effect will be obtained
by letting the code run its course and vm being dereferenced,
triggering an exception.
So just remove this check.
Signed-off-by: Guanrui Huang <guanrui.huang@linux.alibaba.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Zenghui Yu <yuzenghui@huawei.com>
Acked-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20240418061053.96803-3-guanrui.huang@linux.alibaba.com
Diffstat (limited to 'drivers/irqchip/irq-gic-v3-its.c')
-rw-r--r-- | drivers/irqchip/irq-gic-v3-its.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c index 20f954211c61..98e559304b7f 100644 --- a/drivers/irqchip/irq-gic-v3-its.c +++ b/drivers/irqchip/irq-gic-v3-its.c @@ -4526,8 +4526,6 @@ static int its_vpe_irq_domain_alloc(struct irq_domain *domain, unsigned int virq struct page *vprop_page; int base, nr_ids, i, err = 0; - BUG_ON(!vm); - bitmap = its_lpi_alloc(roundup_pow_of_two(nr_irqs), &base, &nr_ids); if (!bitmap) return -ENOMEM; |