From: Finn Thain Date: Mon, 30 Mar 2015 01:22:30 +0000 (+1100) Subject: m68k/mac: Fix out-of-bounds array index in OSS IRQ source initialization X-Git-Tag: v4.1~377^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b24f670b7f5b2058b95370caa9f104b3cefb9f1d;p=platform%2Fkernel%2Flinux-amlogic.git m68k/mac: Fix out-of-bounds array index in OSS IRQ source initialization Reported-by: David Binderman Signed-off-by: Finn Thain Signed-off-by: Geert Uytterhoeven --- diff --git a/arch/m68k/mac/oss.c b/arch/m68k/mac/oss.c index 5403712..bb11dce 100644 --- a/arch/m68k/mac/oss.c +++ b/arch/m68k/mac/oss.c @@ -47,9 +47,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; - } } /*