Files
linux/drivers
Gerald Schaefer 792bd1fb5b s390/dcssblk: fix device size calculation in dcssblk_direct_access()
commit a63f53e34d upstream.

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")
Signed-off-by: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-03-15 09:57:12 +08:00
..
2017-03-12 06:37:27 +01:00
2016-09-24 10:07:35 +02:00
2017-03-12 06:37:24 +01:00
2017-01-12 11:22:47 +01:00
2017-02-23 17:43:10 +01:00
2016-12-08 07:15:24 +01:00
2016-11-26 09:54:53 +01:00