]> git.baikalelectronics.ru Git - kernel.git/commit
[S390] dasd: use vmalloc for statistics input buffer
authorStefan Weinhuber <wein@de.ibm.com>
Wed, 3 Aug 2011 14:44:20 +0000 (16:44 +0200)
committerHeiko Carstens <heiko.carstens@de.ibm.com>
Wed, 3 Aug 2011 14:44:19 +0000 (16:44 +0200)
commitd4dde470679722ab538a159a9962da80a1a12d94
treea8a7da35bff7d9379678ba8f59f512f12681f768
parentcc85292d3f0ea5479d91b1323792bc99e7177cc5
[S390] dasd: use vmalloc for statistics input buffer

The size of the buffer that is used to store DASD statistics input
strings depends on the user input. If the input string is to large,
the write operation could fail with -ENOMEM. To avoid this, use
vmalloc instead of kmalloc.

Signed-off-by: Stefan Weinhuber <wein@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
drivers/s390/block/dasd.c
drivers/s390/block/dasd_proc.c