[SCSI] qla2xxx: Pass the command's data residual to upper-layer callers.
authorRavi Anand <ravi.anand@qlogic.com>
Fri, 31 Jul 2009 22:09:23 +0000 (15:09 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Sat, 22 Aug 2009 22:52:15 +0000 (17:52 -0500)
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>
drivers/scsi/qla2xxx/qla_isr.c

index 245e7afb4c4dcf897c54029f8a3940408a2a4fbe..f966d540d2cd975f908970924953bb1c3bce4cd2 100644 (file)
@@ -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;
                        }