Commit 4b4f30cc authored by Chad Dupuis's avatar Chad Dupuis Committed by James Bottomley

[SCSI] qla2xxx: Fixup looking for a space in the outstanding_cmds array in qla2x00_alloc_iocbs().

Signed-off-by: default avatarChad Dupuis <chad.dupuis@qlogic.com>
Signed-off-by: default avatarSaurav Kashyap <saurav.kashyap@qlogic.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent b97f5d0b
...@@ -1814,7 +1814,7 @@ qla2x00_alloc_iocbs(scsi_qla_host_t *vha, srb_t *sp) ...@@ -1814,7 +1814,7 @@ qla2x00_alloc_iocbs(scsi_qla_host_t *vha, srb_t *sp)
/* Check for room in outstanding command list. */ /* Check for room in outstanding command list. */
handle = req->current_outstanding_cmd; handle = req->current_outstanding_cmd;
for (index = 1; req->num_outstanding_cmds; index++) { for (index = 1; index < req->num_outstanding_cmds; index++) {
handle++; handle++;
if (handle == req->num_outstanding_cmds) if (handle == req->num_outstanding_cmds)
handle = 1; handle = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment