mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 00:04:15 +08:00
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>
This commit is contained in:
parent
e26422fe91
commit
0290217ad8
@ -4296,9 +4296,9 @@ lpfc_drop_node(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp)
|
|||||||
if (vport->phba->sli_rev == LPFC_SLI_REV4) {
|
if (vport->phba->sli_rev == LPFC_SLI_REV4) {
|
||||||
lpfc_cleanup_vports_rrqs(vport, ndlp);
|
lpfc_cleanup_vports_rrqs(vport, ndlp);
|
||||||
lpfc_unreg_rpi(vport, ndlp);
|
lpfc_unreg_rpi(vport, ndlp);
|
||||||
} else {
|
|
||||||
lpfc_nlp_put(ndlp);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
lpfc_nlp_put(ndlp);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user