[SCSI] qla2xxx: Pass the command's data residual to upper-layer callers.
[safe/jmp/linux-2.6] / drivers / scsi / qla2xxx / qla_isr.c
index 245e7af..f966d54 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;
                        }