[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)
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>

No differences found