scsi: lpfc: Fix refcounting around SCSI and NVMe transport APIs
[platform/kernel/linux-starfive.git] / drivers / scsi / lpfc / lpfc_nvme.h
index 4a4c3f7..4e11ce8 100644 (file)
@@ -38,7 +38,7 @@
 #define LPFC_NVME_INFO_MORE_STR                "\nCould be more info...\n"
 
 #define lpfc_ndlp_get_nrport(ndlp)                                     \
-       ((!ndlp->nrport || (ndlp->upcall_flags & NLP_WAIT_FOR_UNREG))   \
+       ((!ndlp->nrport || (ndlp->fc4_xpt_flags & NLP_WAIT_FOR_UNREG))  \
        ? NULL : ndlp->nrport)
 
 struct lpfc_nvme_qhandle {