lpfc: Correct reference counting of rport

Signed-off-by: Dick Kennedy <[email protected]>
Signed-off-by: James Smart <[email protected]>
Reviewed-by: Hannes Reinecke <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
This commit is contained in:
James Smart 2015-05-21 13:55:19 -04:00 • committed by James Bottomley
commit 7aafb6e75e

View file

@ -161,7 +161,8 @@ lpfc_dev_loss_tmo_callbk(struct fc_rport *rport)
ndlp->rport = NULL;
if (put_node)
lpfc_nlp_put(ndlp);
put_device(&rport->dev);
if (put_rport)
put_device(&rport->dev);
return;
}