[PATCH 2/2 Trusty SRU] lpfc: Correct loss of target discovery after cable swap.
Tim Gardner
tim.gardner at canonical.com
Wed May 11 13:49:07 UTC 2016
From: James Smart <james.smart at avagotech.com>
BugLink: http://bugs.launchpad.net/bugs/1580560
Fix incorrect reference counting
Signed-off-by: Dick Kennedy <dick.kennedy at avagotech.com>
Signed-off-by: James Smart <james.smart at avagotech.com>
Reviewed-by: Hannes Reinecke <hare at suse.de>
Signed-off-by: James Bottomley <JBottomley at Odin.com>
(cherry picked from commit 0290217ad830f2813bb9ed5f51af686c0c591f28)
Signed-off-by: Tim Gardner <tim.gardner at canonical.com>
---
drivers/scsi/lpfc/lpfc_hbadisc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/scsi/lpfc/lpfc_hbadisc.c b/drivers/scsi/lpfc/lpfc_hbadisc.c
index 6a572af..a55d2a4 100644
--- a/drivers/scsi/lpfc/lpfc_hbadisc.c
+++ b/drivers/scsi/lpfc/lpfc_hbadisc.c
@@ -4261,9 +4261,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;
}
--
1.9.1
More information about the kernel-team
mailing list