[PATCH] Overrun in cdrom/aztcd.c
authorEric Sesterhenn <snakebyte@gmx.de>
Tue, 11 Apr 2006 05:54:37 +0000 (22:54 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 11 Apr 2006 13:18:46 +0000 (06:18 -0700)
commitd93c2efc93f61c95808e303982f12fe6f5987270
treedfb81b98ad65e8b1b27a8ed1d32e545cd4c0e8c2
parente60b6e2f747e94358fed9a23afd6abd738de4bf7
[PATCH] Overrun in cdrom/aztcd.c

This fixes coverity bug id #473.  After the for loop i==16 if we didn't find a
cdrom.  So we should check for i==16 first before checking the array element.

Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Cc: Jens Axboe <axboe@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/cdrom/aztcd.c