]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfd826e4275538cf0baa5c2a605c3daf7533738ab
treedfe76bc42ab89ce73faf427d718704e8b4cc2856
parent58e089e7b0b845eea3649a3d8d4c837b4521e9e3
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