From: Heiko Carstens Date: Mon, 14 Oct 2013 12:26:08 +0000 (+0200) Subject: s390/vmlogrdr: fix array access in vmlogrdr_open() X-Git-Tag: v3.12-rc7~14^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9784bd4f1a6ea736ad9bf241f5a965e0a2913a5e;p=pandora-kernel.git s390/vmlogrdr: fix array access in vmlogrdr_open() Fix check within vmlogrdr_open() if the minor address is not larger than the number of array elements. Found with "smatch": drivers/s390/char/vmlogrdr.c:318 vmlogrdr_open() warn: buffer overflow 'sys_ser' 3 <= 3 Acked-by: Stefan Weinhuber Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky --- Reading git-diff-tree failed