Skip to content

Commit

Permalink
[SCSI] qla2xxx: Pass the command's data residual to upper-layer callers.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ravi Anand authored and James Bottomley committed Aug 22, 2009
1 parent 2bfd2e1 commit 8f1f3ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/scsi/qla2xxx/qla_isr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8f1f3ec

Please sign in to comment.