[SCSI] make use of the residue value
authorJames Bottomley <James.Bottomley@HansenPartnership.com>
Sun, 9 Mar 2008 00:24:17 +0000 (18:24 -0600)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Thu, 5 Jun 2008 14:23:45 +0000 (09:23 -0500)
USB sometimes doesn't return an error but instead returns a residue
value indicating part (or all) of the command wasn't completed.  So if
the driver _done() error processing indicates the command was fully
processed, subtract off the residue so that this USB error gets
propagated.

Cc: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>

No differences found