aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRavi Anand <ravi.anand@qlogic.com>2009-07-31 15:09:23 -0700
committerJames Bottomley <James.Bottomley@suse.de>2009-08-22 17:52:15 -0500
commit8f1f3ece891e8fe6ee69fa27617b60cb26e37bec (patch)
treeb0fc9220012f246677679cfab859f7d909d35ff7
parent2bfd2e1337f0d8bb6ff45ce12934c45b83d70ee0 (diff)
[SCSI] qla2xxx: Pass the command's data residual to upper-layer callers.
Signed-off-by: Ravi Anand <ravi.anand@qlogic.com> Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
-rw-r--r--drivers/scsi/qla2xxx/qla_isr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_isr.c b/drivers/scsi/qla2xxx/qla_isr.c
index 245e7afb4c4..f966d540d2c 100644
--- a/drivers/scsi/qla2xxx/qla_isr.c
+++ b/drivers/scsi/qla2xxx/qla_isr.c
@@ -1223,6 +1223,7 @@ qla2x00_status_entry(scsi_qla_host_t *vha, struct rsp_que *rsp, void *pkt)
cp->device->id, cp->device->lun, resid,
scsi_bufflen(cp)));
+ scsi_set_resid(cp, resid);
cp->result = DID_ERROR << 16;
break;
}