Commit b7e50c53 authored by James Smart's avatar James Smart Committed by Martin K. Petersen

scsi: lpfc: Fix ndlp ref count for pt2pt mode issue RSCN

pt2pt ndlp ref count prematurely goes to 0. There was reference removed
that should only be removed if connected to a switch, not if in
point-to-point mode.

Add a mode check before the reference remove.
Signed-off-by: default avatarDick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: default avatarJames Smart <james.smart@broadcom.com>
Reviewed-by: default avatarHannes Reinecke <hare@suse.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent bcb24f65
...@@ -2956,8 +2956,8 @@ lpfc_issue_els_scr(struct lpfc_vport *vport, uint32_t nportid, uint8_t retry) ...@@ -2956,8 +2956,8 @@ lpfc_issue_els_scr(struct lpfc_vport *vport, uint32_t nportid, uint8_t retry)
/* This will cause the callback-function lpfc_cmpl_els_cmd to /* This will cause the callback-function lpfc_cmpl_els_cmd to
* trigger the release of node. * trigger the release of node.
*/ */
if (!(vport->fc_flag & FC_PT2PT))
lpfc_nlp_put(ndlp); lpfc_nlp_put(ndlp);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment