summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRavi Anand <ravi.anand@qlogic.com>2009-07-31 22:09:23 (GMT)
committerJames Bottomley <James.Bottomley@suse.de>2009-08-22 22:52:15 (GMT)
commit8f1f3ece891e8fe6ee69fa27617b60cb26e37bec (patch)
treeb0fc9220012f246677679cfab859f7d909d35ff7
parent2bfd2e1337f0d8bb6ff45ce12934c45b83d70ee0 (diff)
downloadlinux-8f1f3ece891e8fe6ee69fa27617b60cb26e37bec.tar.xz
[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 245e7af..f966d54 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;
}