Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b24f670b authored by Finn Thain's avatar Finn Thain Committed by Geert Uytterhoeven
Browse files

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

parent 79bf442c
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -47,10 +47,9 @@ 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;
}
}

/*
 * Initialize OSS for Nubus access