Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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

parent b97f5d0b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1814,7 +1814,7 @@ qla2x00_alloc_iocbs(scsi_qla_host_t *vha, srb_t *sp)

	/* Check for room in outstanding command list. */
	handle = req->current_outstanding_cmd;
	for (index = 1; req->num_outstanding_cmds; index++) {
	for (index = 1; index < req->num_outstanding_cmds; index++) {
		handle++;
		if (handle == req->num_outstanding_cmds)
			handle = 1;