um: irq: Fix LAST_IRQ usage in init_IRQ()
authorErel Geron <erelx.geron@intel.com>
Wed, 31 Jul 2019 20:29:41 +0000 (22:29 +0200)
committerRichard Weinberger <richard@nod.at>
Mon, 16 Sep 2019 06:38:58 +0000 (08:38 +0200)
LAST_IRQ was used incorrectly in init_IRQ.
Commit 09ccf0364ca3 forgot to update the for loop.
Fix this.

Fixes: 49da7e64f33e ("High Performance UML Vector Network Driver")
Fixes: 09ccf0364ca3 ("um: Fix off by one error in IRQ enumeration")
Signed-off-by: Erel Geron <erelx.geron@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Acked-by: Anton Ivanov <anton.ivanov@cambridgegreys.co.uk>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/kernel/irq.c

index f4d01192d39f8163cc4f946e323c5e222d684f8b..3577118bb4a5876e66f33da5b2bf47fc7b6404f9 100644 (file)
@@ -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();