]> git.baikalelectronics.ru Git - kernel.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)
commita6a872a36fc0b105612473b2753ac8009f0d43e2
tree4701ebff8882da0f5ff15f1dab3468d259b2c5dd
parent216b5ac6ebe163bbd8168ad34bfb4b3aad79f1fe
[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