From: Andrew Vasquez Date: Mon, 7 May 2007 14:43:00 +0000 (-0700) Subject: [SCSI] qla2xxx: Attempt to stop firmware only if it had been previously executed. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=75edf81d337ea84a291f0fdae2777cfd07045eca;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [SCSI] qla2xxx: Attempt to stop firmware only if it had been previously executed. Signed-off-by: Andrew Vasquez Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/qla2xxx/qla_init.c b/drivers/scsi/qla2xxx/qla_init.c index 3e296ab845b6..6ad15880c468 100644 --- a/drivers/scsi/qla2xxx/qla_init.c +++ b/drivers/scsi/qla2xxx/qla_init.c @@ -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--) {