Skip to content

Commit

Permalink
[SCSI] qla2xxx: Attempt to stop firmware only if it had been previous…
Browse files Browse the repository at this point in the history
…ly executed.

Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
  • Loading branch information
Andrew Vasquez authored and James Bottomley committed May 8, 2007
1 parent a7b6184 commit 75edf81
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/scsi/qla2xxx/qla_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -3931,6 +3931,8 @@ qla2x00_try_to_stop_firmware(scsi_qla_host_t *ha)

if (!IS_QLA24XX(ha) && !IS_QLA54XX(ha))
return;
if (!ha->fw_major_version)
return;

ret = qla2x00_stop_firmware(ha);
for (retries = 5; ret != QLA_SUCCESS && retries ; retries--) {
Expand Down

0 comments on commit 75edf81

Please sign in to comment.