]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[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)
commit427e59f09fdba387547106de7bab980b7fff77be
tree4701ebff8882da0f5ff15f1dab3468d259b2c5dd
parent19c4158bcdf42ee3b2394342caf14f8471d2c78e
[SCSI] make use of the residue value

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>
drivers/scsi/scsi.c