]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[S390] cio: fix wrong buffer access in cio_ignore_write
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Thu, 26 Mar 2009 14:24:16 +0000 (15:24 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 26 Mar 2009 14:24:16 +0000 (15:24 +0100)
commit94cbc203bee4ea87bd49ad56f6c5381bc10d8b6b
tree0ca9d98b1137056d783b25bf8a5d1f69b2ff7a47
parente909074bb91773680c0b2e49ea8af9f85c6f59bd
[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 <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/blacklist.c