]> err.no Git - linux-2.6/commitdiff
[SCSI] qla2xxx: Attempt to stop firmware only if it had been previously executed.
authorAndrew Vasquez <andrew.vasquez@qlogic.com>
Mon, 7 May 2007 14:43:00 +0000 (07:43 -0700)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Tue, 8 May 2007 16:21:07 +0000 (11:21 -0500)
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/qla2xxx/qla_init.c

index 3e296ab845b653a454efc4f05a70f444eed4a67d..6ad15880c4685da5998c6d5ffc62ebe68ded8e93 100644 (file)
@@ -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--) {