summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFinn Thain <fthain@telegraphics.com.au>2015-03-30 12:22:30 +1100
committerJiri Slaby <jslaby@suse.cz>2015-06-10 15:20:27 +0200
commit18d22c77444fa5450526610f3763fec929e698b3 (patch)
tree74ba1caf63deeda196eb405cc8a2a36f158ca918
parent44fa042f532c7f8ac3421456eaae4255297092e0 (diff)
downloadlwn-18d22c77444fa5450526610f3763fec929e698b3.tar.gz
lwn-18d22c77444fa5450526610f3763fec929e698b3.zip
m68k/mac: Fix out-of-bounds array index in OSS IRQ source initialization
commit b24f670b7f5b2058b95370caa9f104b3cefb9f1d upstream. 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> Signed-off-by: Jiri Slaby <jslaby@suse.cz>
-rw-r--r--arch/m68k/mac/oss.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/m68k/mac/oss.c b/arch/m68k/mac/oss.c
index 6c4c882c126e..f32a8817cc79 100644
--- a/arch/m68k/mac/oss.c
+++ b/arch/m68k/mac/oss.c
@@ -48,9 +48,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;
- }
}
/*