Message ID | 20190904071007.7837-1-johannes@sipsolutions.net |
---|---|
State | Rejected |
Headers | show |
Series | [v2] um: irq: Fix LAST_IRQ usage | expand |
On Wed, 2019-09-04 at 09:10 +0200, Johannes Berg wrote: > From: Erel Geron <erelx.geron@intel.com> > > LAST_IRQ was used incorrectly in init_IRQ. > Fix this. Oops, ignore this one - I accidentally sent it instead of the virtio code. johannes
diff --git a/arch/um/include/asm/irq.h b/arch/um/include/asm/irq.h index 49ed3e35b35a..ce7a78c3bcf2 100644 --- a/arch/um/include/asm/irq.h +++ b/arch/um/include/asm/irq.h @@ -23,7 +23,7 @@ #define VECTOR_BASE_IRQ 15 #define VECTOR_IRQ_SPACE 8 -#define LAST_IRQ (VECTOR_IRQ_SPACE + VECTOR_BASE_IRQ) +#define LAST_IRQ (VECTOR_IRQ_SPACE + VECTOR_BASE_IRQ - 1) #else diff --git a/arch/um/kernel/irq.c b/arch/um/kernel/irq.c index efde1f16c603..402e59bdb65b 100644 --- a/arch/um/kernel/irq.c +++ b/arch/um/kernel/irq.c @@ -480,7 +480,7 @@ void __init init_IRQ(void) irq_set_chip_and_handler(TIMER_IRQ, &SIGVTALRM_irq_type, handle_edge_irq); - for (i = 1; i < LAST_IRQ; i++) + for (i = 1; i <= LAST_IRQ; i++) irq_set_chip_and_handler(i, &normal_irq_type, handle_edge_irq); /* Initialize EPOLL Loop */ os_setup_epoll();