mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
m68k/mac: Fix out-of-bounds array index in OSS IRQ source initialization
Reported-by: David Binderman <dcb314@hotmail.com> Signed-off-by: Finn Thain <fthain@telegraphics.com.au> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
This commit is contained in:
parent
79bf442c79
commit
b24f670b7f
1 changed files with 1 additions and 2 deletions
|
|
@ -47,9 +47,8 @@ void __init oss_init(void)
|
|||
/* Disable all interrupts. Unlike a VIA it looks like we */
|
||||
/* 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;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue