Commit b24f670b authored by Finn Thain's avatar Finn Thain Committed by Geert Uytterhoeven

m68k/mac: Fix out-of-bounds array index in OSS IRQ source initialization

Reported-by: default avatarDavid Binderman <dcb314@hotmail.com>
Signed-off-by: default avatarFinn Thain <fthain@telegraphics.com.au>
Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
parent 79bf442c
...@@ -47,9 +47,8 @@ void __init oss_init(void) ...@@ -47,9 +47,8 @@ void __init oss_init(void)
/* Disable all interrupts. Unlike a VIA it looks like we */ /* Disable all interrupts. Unlike a VIA it looks like we */
/* do this by setting the source's interrupt level to zero. */ /* do this by setting the source's interrupt level to zero. */
for (i = 0; i <= OSS_NUM_SOURCES; i++) { for (i = 0; i < OSS_NUM_SOURCES; i++)
oss->irq_level[i] = 0; oss->irq_level[i] = 0;
}
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment