mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
lpfc: Correct reporting of vport state on fdisc command failure.
Signed-off-by: Dick Kennedy <[email protected]> Signed-off-by: James Smart <[email protected]> Reviewed-by: Hannes Reinecke <[email protected]> Signed-off-by: James Bottomley <[email protected]>
This commit is contained in:
parent
86478875eb
commit
c84163d179
1 changed files with 2 additions and 1 deletions
|
|
@ -8237,7 +8237,8 @@ lpfc_cmpl_els_fdisc(struct lpfc_hba *phba, struct lpfc_iocbq *cmdiocb,
|
|||
lpfc_do_scr_ns_plogi(phba, vport);
|
||||
goto out;
|
||||
fdisc_failed:
|
||||
lpfc_vport_set_state(vport, FC_VPORT_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);
|
||||
lpfc_nlp_put(ndlp);
|
||||
|
|
|
|||
Loading…
Reference in a new issue