]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
m68k/mac: Fix out-of-bounds array index in OSS IRQ source initialization
authorFinn Thain <fthain@telegraphics.com.au>
Mon, 30 Mar 2015 01:22:30 +0000 (12:22 +1100)
committerJiri Slaby <jslaby@suse.cz>
Wed, 10 Jun 2015 13:20:27 +0000 (15:20 +0200)
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>
arch/m68k/mac/oss.c

index 6c4c882c126e826e2d1b114f39acaf3e8b9ddc15..f32a8817cc799cda4c4fa61df86ef75ab25fb3ea 100644 (file)
@@ -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;
-       }
 }
 
 /*