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

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

lpfc: Correct loss of target discovery after cable swap.



Fix incorrect reference counting

Signed-off-by: default avatarDick Kennedy <dick.kennedy@avagotech.com>
Signed-off-by: default avatarJames Smart <james.smart@avagotech.com>
Reviewed-by: default avatarHannes Reinecke <hare@suse.de>
Signed-off-by: default avatarJames Bottomley <JBottomley@Odin.com>
parent e26422fe
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4296,9 +4296,9 @@ lpfc_drop_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp)
	if (vport->phba->sli_rev == LPFC_SLI_REV4) {
		lpfc_cleanup_vports_rrqs(vport, ndlp);
		lpfc_unreg_rpi(vport, ndlp);
	} else {
		lpfc_nlp_put(ndlp);
	}

	lpfc_nlp_put(ndlp);
	return;
}