diff options
author | Erel Geron <erelx.geron@intel.com> | 2019-07-31 23:29:41 +0300 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2019-09-16 09:38:58 +0300 |
commit | 73625ed66389d4c620520058d828f43a93ab4d0c (patch) | |
tree | 3b2c92354eeacf242c4a72f76c90e44a08029241 /arch/um/kernel | |
parent | f2f4bf5aabadd6575f5daabcb0a2f506e3f5f68c (diff) | |
download | linux-73625ed66389d4c620520058d828f43a93ab4d0c.tar.xz |
um: irq: Fix LAST_IRQ usage in init_IRQ()
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>
Diffstat (limited to 'arch/um/kernel')
-rw-r--r-- | arch/um/kernel/irq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/kernel/irq.c b/arch/um/kernel/irq.c index f4d01192d39f..3577118bb4a5 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(); |