Commit 2e47e4e6 authored by Shivasharan S's avatar Shivasharan S Committed by Martin K. Petersen
Browse files

scsi: megaraid_sas: Fail init if heartbeat timer fails



When driver fails to start the heartbeat timer, exit from FW init.

Signed-off-by: default avatarShivasharan S <shivasharan.srikanteshwara@broadcom.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 5acad9b9
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -5694,10 +5694,12 @@ static int megasas_init_fw(struct megasas_instance *instance)

	/* Launch SR-IOV heartbeat timer */
	if (instance->requestorId) {
		if (!megasas_sriov_start_heartbeat(instance, 1))
		if (!megasas_sriov_start_heartbeat(instance, 1)) {
			megasas_start_timer(instance);
		else
		} else {
			instance->skip_heartbeat_timer_del = 1;
			goto fail_get_ld_pd_list;
		}
	}

	/*