Skip to content

Commit

Permalink
m68k/mac: Fix out-of-bounds array index in OSS IRQ source initialization
Browse files Browse the repository at this point in the history
commit b24f670 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>
  • Loading branch information
Finn Thain authored and Jiri Slaby committed Jun 10, 2015
1 parent 44fa042 commit 18d22c7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/m68k/mac/oss.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

/*
Expand Down

0 comments on commit 18d22c7

Please sign in to comment.