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

Commit c84163d1 authored by James Smart's avatar James Smart Committed by James Bottomley
Browse files

lpfc: Correct reporting of vport state on fdisc command failure.

parent 86478875
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -8237,6 +8237,7 @@ lpfc_cmpl_els_fdisc(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb,
		lpfc_do_scr_ns_plogi(phba, vport);
	goto out;
fdisc_failed:
	if (vport->fc_vport->vport_state != FC_VPORT_NO_FABRIC_RSCS)
		lpfc_vport_set_state(vport, FC_VPORT_FAILED);
	/* Cancel discovery timer */
	lpfc_can_disctmo(vport);