mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 12:44:03 +02:00
scsi: qla2xxx: Fix an loop timeout test
This loop timeout with "retries" set to -1, not 0. Fix the test for
failure.
Fixes: 7ec0effd30 ("[SCSI] qla2xxx: Add support for ISP8044.")
Signed-off-by: Dan Carpenter <error27@gmail.com>
Link: https://patch.msgid.link/an1twcxTYSFkkUTA@stanley.mountain
Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>
This commit is contained in:
parent
ff9365a4c9
commit
11e48f5201
|
|
@ -3507,7 +3507,7 @@ qla8044_poll_flash_status_reg(struct scsi_qla_host *vha)
|
|||
msleep(QLA8044_FLASH_STATUS_REG_POLL_DELAY);
|
||||
}
|
||||
|
||||
if (!retries)
|
||||
if (retries == -1)
|
||||
ret_val = QLA_FUNCTION_FAILED;
|
||||
|
||||
return ret_val;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user