diff options
author | James Smart <james.smart@avagotech.com> | 2015-05-21 19:55:19 +0200 |
---|---|---|
committer | James Bottomley <JBottomley@Odin.com> | 2015-06-06 00:31:21 +0200 |
commit | 7aafb6e75e0212b5aa5b1f79737e6e8de40b1132 (patch) | |
tree | 936991f43515f6e46ff806044b2a9bc9f655cbd8 /drivers | |
parent | lpfc: Add support for ELS LCB. (diff) | |
download | linux-7aafb6e75e0212b5aa5b1f79737e6e8de40b1132.tar.xz linux-7aafb6e75e0212b5aa5b1f79737e6e8de40b1132.zip |
lpfc: Correct reference counting of rport
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')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_hbadisc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/lpfc/lpfc_hbadisc.c b/drivers/scsi/lpfc/lpfc_hbadisc.c index 72388a6ec5d5..e93705da81b4 100644 --- a/drivers/scsi/lpfc/lpfc_hbadisc.c +++ b/drivers/scsi/lpfc/lpfc_hbadisc.c @@ -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; } |