s390/dasd: validate request size before building CCW/TCW request
authorStefan Weinhuber <wein@de.ibm.com>
Tue, 19 Nov 2013 13:15:57 +0000 (14:15 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 20 Nov 2013 08:04:54 +0000 (09:04 +0100)
commit26a35f373fbe6f21e8ad5ca4de1c01021e38fe2f
tree1e0ac74c9336553c6dfd86cdcbf86c7ba969379e
parentaa7e04b3808614980d474735cdb0bf35ac5cdf26
s390/dasd: validate request size before building CCW/TCW request

An I/O request that does not read or write full blocks cannot be
translated into a correct CCW or TCW program and should be rejected
right away. In particular the code that creates TCW requests will not
notice this problem and create broken TCWs that will be rejected by
the hardware.

Signed-off-by: Stefan Weinhuber <wein@de.ibm.com>
Reference-ID: RQM1956
drivers/s390/block/dasd_eckd.c