From: Sebastian Ott Date: Thu, 26 Mar 2009 14:24:16 +0000 (+0100) Subject: [S390] cio: fix wrong buffer access in cio_ignore_write X-Git-Tag: v2.6.30-rc1~659^2~46 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94cbc203bee4ea87bd49ad56f6c5381bc10d8b6b;p=pandora-kernel.git [S390] cio: fix wrong buffer access in cio_ignore_write Writing only spaces to /proc/cio_ignore will cause a buffer overflow since the size_t value i will not become negative and so buf[-1UL] is accessed. Change the value of i to ssize_t. Signed-off-by: Sebastian Ott Signed-off-by: Martin Schwidefsky --- Reading git-diff-tree failed