[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] xen/arm: gic: Correctly check if an IRQ is valid in gic_interrupt
commit 3508bd4d7648501cbfb879585341e6a80f71581c Author: Julien Grall <julien.grall@xxxxxxxxxx> AuthorDate: Tue Mar 3 16:36:16 2015 +0000 Commit: Ian Campbell <ian.campbell@xxxxxxxxxx> CommitDate: Thu Mar 5 17:06:42 2015 +0000 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 <julien.grall@xxxxxxxxxx> Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx> --- xen/arch/arm/gic.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/xen/arch/arm/gic.c b/xen/arch/arm/gic.c index 390c8b0..940fb8e 100644 --- a/xen/arch/arm/gic.c +++ b/xen/arch/arm/gic.c @@ -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); -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |