[PATCH] fix array overrun in drivers/char/mwave/mwavedd.c
authorEric Sesterhenn <snakebyte@gmx.de>
Fri, 28 Apr 2006 01:39:20 +0000 (18:39 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 28 Apr 2006 15:33:46 +0000 (08:33 -0700)
commitd698f1c72629ff43d0cb6b9f1d17c491c057a0d9
treec9fb0ef3caaaf35bef346b5d0d8eb671e7ee071a
parent1ac3836ce689e594b20c7c9855f64a63751c2d10
[PATCH] fix array overrun in drivers/char/mwave/mwavedd.c

this fixes coverity id #489.

Since the last element in the array is always ARRAY_SIZE-1 we have to check
for ipcnum >= ARRAY_SIZE()

Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/mwave/mwavedd.c