s390/dcss: array index 'i' is used before limits check.
authorAmeen Ali <ameenali023@gmail.com>
Tue, 24 Feb 2015 16:41:50 +0000 (18:41 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 26 Feb 2015 08:24:48 +0000 (09:24 +0100)
Avoid out-of-bounds-read by checking count before indexing.

Signed-off-by : Ameen Ali <Ameenali023@gmail.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/block/dcssblk.c

Simple merge