[SCSI] scsi_debug: set resid to indicate no data-in when medium error
authorDouglas Gilbert <dgilbert@interlog.com>
Sat, 18 Dec 2010 00:16:06 +0000 (19:16 -0500)
committerJames Bottomley <James.Bottomley@suse.de>
Thu, 23 Dec 2010 05:26:49 +0000 (23:26 -0600)
commita87e3a67d57472f40da2218793ff6d25c4518498
tree4d961347263e06ee018821aa4195d1db22e29c65
parenta8733c7baf457b071528e385a0b7d4aaec79287c
[SCSI] scsi_debug: set resid to indicate no data-in when medium error

set resid to the requested data-in length when a MEDIUM ERROR is
simulated. This implies no valid data is returned in the data-in
buffer

Signed-off-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/scsi_debug.c