[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>
This commit is contained in:
committed by
James Bottomley
parent
2bfd2e1337
commit
8f1f3ece89
@@ -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,
|
cp->device->id, cp->device->lun, resid,
|
||||||
scsi_bufflen(cp)));
|
scsi_bufflen(cp)));
|
||||||
|
|
||||||
|
scsi_set_resid(cp, resid);
|
||||||
cp->result = DID_ERROR << 16;
|
cp->result = DID_ERROR << 16;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user