linux/drivers/s390
Gerald Schaefer a63f53e34d s390/dcssblk: fix device size calculation in dcssblk_direct_access()
Since commit dd22f551 "block: Change direct_access calling convention",
the device size calculation in dcssblk_direct_access() is off-by-one.
This results in bdev_direct_access() always returning -ENXIO because the
returned value is not page aligned.

Fix this by adding 1 to the dev_sz calculation.

Fixes: dd22f551 ("block: Change direct_access calling convention")
Cc: <stable@vger.kernel.org> # 4.0+
Signed-off-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2017-02-03 13:50:17 +01:00
..
block s390/dcssblk: fix device size calculation in dcssblk_direct_access() 2017-02-03 13:50:17 +01:00
char s390: use false/true when using bool 2017-01-16 07:27:54 +01:00
cio s390/cio: remove cmf related code relevant for 31 bit only 2017-01-16 07:27:55 +01:00
crypto s390/zcrypt: use spin_lock_bh for all queue locks and unlocks. 2017-01-31 10:46:15 +01:00
net Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
scsi scsi: zfcp: fix rport unblock race with LUN recovery 2016-12-14 15:17:20 -05:00
virtio s390: use false/true when using bool 2017-01-16 07:27:54 +01:00
Makefile virtio/s390: rename drivers/s390/kvm -> drivers/s390/virtio 2015-07-07 14:27:06 +03:00