projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b017a3
)
lpfc: Correct reference counting of rport
author
James Smart
<james.smart@avagotech.com>
Thu, 21 May 2015 17:55:19 +0000
(13:55 -0400)
committer
James Bottomley
<JBottomley@Odin.com>
Fri, 5 Jun 2015 22:31:21 +0000
(15:31 -0700)
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>
drivers/scsi/lpfc/lpfc_hbadisc.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/lpfc/lpfc_hbadisc.c
b/drivers/scsi/lpfc/lpfc_hbadisc.c
index 72388a6ec5d5c8d005f6b2e737b0bcc51a8c8bb0..e93705da81b4e3555adfa2c2061af7baaa25ab92 100644
(file)
--- 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;
}