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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Reported-by: David Binderman <dcb314@xxxxxxxxxxx>
Signed-off-by: Finn Thain <fthain@xxxxxxxxxxxxxxxxxxx>

Index: linux/arch/m68k/mac/oss.c
===================================================================
--- linux.orig/arch/m68k/mac/oss.c	2015-03-20 20:10:54.000000000 +1100
+++ linux/arch/m68k/mac/oss.c	2015-03-28 14:39:07.000000000 +1100
@@ -47,7 +47,7 @@ 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;
 	}
 }

--
To unsubscribe from this list: send the line "unsubscribe linux-m68k" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Video for Linux]     [Yosemite News]     [Linux S/390]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux