Niklas Cassel
75e52ba125
cris: irq: stop loop from accessing array out of bounds
array "interrupt" only has 32 or 64 elements, depending on machine.
arch/cris/arch-v32/kernel/irq.c: In function ‘init_IRQ’:
arch/cris/arch-v32/kernel/irq.c:475:3: warning: iteration 32u invokes undefined behavior [-Waggressive-loop-optimizations]
set_exception_vector(i, interrupt[j]);
^
arch/cris/arch-v32/kernel/irq.c:474:2: note: containing loop
for (i = FIRST_IRQ, j = 0; j < NBR_INTR_VECT; i++, j++) {
^
Signed-off-by: Niklas Cassel <nks@flawful.org>
Signed-off-by: Jesper Nilsson <jespern@axis.com>
2016-09-22 16:26:29 +02:00
..
2008-10-29 17:29:44 +01:00
2010-08-04 12:59:43 +02:00
2015-11-02 20:03:05 +01:00
2015-11-02 20:03:05 +01:00
2015-09-05 00:56:49 +02:00
2016-09-22 16:26:29 +02:00
2015-12-15 14:03:19 +01:00
2016-09-22 16:26:29 +02:00
2010-08-04 13:00:53 +02:00
2015-11-02 20:03:04 +01:00
2015-03-25 10:55:10 +01:00
2016-05-20 17:58:30 -07:00
2012-04-03 13:09:18 +02:00
2015-11-02 20:03:05 +01:00
2015-09-05 00:33:25 +02:00
2015-08-10 11:41:08 +02:00
2010-08-04 13:02:15 +02:00