Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 75edf81d authored by Andrew Vasquez's avatar Andrew Vasquez Committed by James Bottomley
Browse files

[SCSI] qla2xxx: Attempt to stop firmware only if it had been previously executed.

parent a7b61842
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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--) {