xen/arm: gic: Correctly check if an IRQ is valid in gic_interrupt
PATCH 1/1 xen/arm: gic: Correctly check if an IRQ is valid in gic_interrupt
The IRQ 1020 is reserved for special purpose, so the check should be "irq < 1020" rather than "irq < 1021".
Signed-off-by Julien Grall <[email protected]>
--- xen/arch/arm/gic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
xen/arch/arm/gic.c +1 -1
@@ -570,7 +570,7 @@ void gic_interrupt(struct cpu_user_regs *regs, int is_fiq)/* Reading IRQ will ACK it */ irq = gic_hw_ops->read_irq (); -if (likely (irq >=16 && irq <1021 ) ) +if (likely (irq >=16 && irq <1020 ) ) {local_irq_enable ();do_IRQ (regs, irq, is_fiq);
Signature · 1 line
2.1.4
Quoted 4 lines · Julien Grall
The IRQ 1020 is reserved for special purpose, so the check should be "irq < 1020" rather than "irq < 1021".
Signed-off-by Julien Grall <[email protected]>
Acked + applied, thanks.