s390/dasd: fix read device characteristic with CONFIG_VMAP_STACK=y
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 1 Mar 2019 15:03:47 +0000 (16:03 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 1 Mar 2019 15:23:56 +0000 (16:23 +0100)
commit9fe567d09f0f061b7776859fb01c31f89044578f
treedfe76bc42ab89ce73faf427d718704e8b4cc2856
parentc8e8ed386a5191d8011d32b5663da10320e7d552
s390/dasd: fix read device characteristic with CONFIG_VMAP_STACK=y

The dasd_eckd_restore_device() function calls dasd_generic_read_dev_chars
with a temporary buffer on the stack. With CONFIG_VMAP_STACK=y this is
a vmalloc address but dasd_generic_restore_device() uses the address of
the buffer as I/O address. Circumvent this by using the already allocated
cqr->data buffer for the RDC data.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/block/dasd.c