Commit 18d22c77 authored by Finn Thain's avatar Finn Thain Committed by Jiri Slaby

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

commit b24f670b upstream.
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>
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
parent 44fa042f
...@@ -48,9 +48,8 @@ void __init oss_init(void) ...@@ -48,9 +48,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