Skip to content

Commit 75edf81

Browse files
avasquez01James Bottomley
authored andcommitted
[SCSI] qla2xxx: Attempt to stop firmware only if it had been previously executed.
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
1 parent a7b6184 commit 75edf81

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/scsi/qla2xxx/qla_init.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3931,6 +3931,8 @@ qla2x00_try_to_stop_firmware(scsi_qla_host_t *ha)
39313931

39323932
if (!IS_QLA24XX(ha) && !IS_QLA54XX(ha))
39333933
return;
3934+
if (!ha->fw_major_version)
3935+
return;
39343936

39353937
ret = qla2x00_stop_firmware(ha);
39363938
for (retries = 5; ret != QLA_SUCCESS && retries ; retries--) {

0 commit comments

Comments
 (0)