diff options
author | James Smart <james.smart@avagotech.com> | 2015-05-21 19:55:17 +0200 |
---|---|---|
committer | James Bottomley <JBottomley@Odin.com> | 2015-06-06 00:28:52 +0200 |
commit | 0290217ad830f2813bb9ed5f51af686c0c591f28 (patch) | |
tree | f9b35fcc7ff24908b35847b4800ffbaf1e375636 /drivers/scsi/lpfc/lpfc_hbadisc.c | |
parent | lpfc: The lpfc driver does not issue RFF_ID and RFT_ID in the correct sequence (diff) | |
download | linux-0290217ad830f2813bb9ed5f51af686c0c591f28.tar.xz linux-0290217ad830f2813bb9ed5f51af686c0c591f28.zip |
lpfc: Correct loss of target discovery after cable swap.
Fix incorrect reference counting
Signed-off-by: Dick Kennedy <dick.kennedy@avagotech.com>
Signed-off-by: James Smart <james.smart@avagotech.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_hbadisc.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_hbadisc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/lpfc/lpfc_hbadisc.c b/drivers/scsi/lpfc/lpfc_hbadisc.c index f2db89fd8839..72388a6ec5d5 100644 --- a/drivers/scsi/lpfc/lpfc_hbadisc.c +++ b/drivers/scsi/lpfc/lpfc_hbadisc.c @@ -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; } |