diff options
author | Finn Thain <fthain@telegraphics.com.au> | 2015-03-29 21:22:30 -0400 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2015-03-30 04:14:34 -0400 |
commit | b24f670b7f5b2058b95370caa9f104b3cefb9f1d (patch) | |
tree | 0dc446836a66afb3931bc5bb6c383600a208e107 /arch/m68k | |
parent | 79bf442c79d67f509060b009ebc55795e918006a (diff) |
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>
Diffstat (limited to 'arch/m68k')
-rw-r--r-- | arch/m68k/mac/oss.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/m68k/mac/oss.c b/arch/m68k/mac/oss.c index 54037125ebf8..bb11dceed7ed 100644 --- a/arch/m68k/mac/oss.c +++ b/arch/m68k/mac/oss.c | |||
@@ -47,9 +47,8 @@ void __init oss_init(void) | |||
47 | /* Disable all interrupts. Unlike a VIA it looks like we */ | 47 | /* Disable all interrupts. Unlike a VIA it looks like we */ |
48 | /* do this by setting the source's interrupt level to zero. */ | 48 | /* do this by setting the source's interrupt level to zero. */ |
49 | 49 | ||
50 | for (i = 0; i <= OSS_NUM_SOURCES; i++) { | 50 | for (i = 0; i < OSS_NUM_SOURCES; i++) |
51 | oss->irq_level[i] = 0; | 51 | oss->irq_level[i] = 0; |
52 | } | ||
53 | } | 52 | } |
54 | 53 | ||
55 | /* | 54 | /* |