diff options
author | James Smart <jsmart2021@gmail.com> | 2017-04-11 21:32:32 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2017-04-21 17:41:51 +0300 |
commit | 568ad51e5d32c7f0a8e3138bc9df2badfcce0304 (patch) | |
tree | 020f232b0f78c93bb5601b88074346c8f2b3b047 /drivers/nvme | |
parent | a97ec51b37efacb84f286979876675a8143035b0 (diff) | |
download | linux-568ad51e5d32c7f0a8e3138bc9df2badfcce0304.tar.xz |
nvmet_fc: add missing reference in add_port
Add missing reference in add_port
Signed-off-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Diffstat (limited to 'drivers/nvme')
-rw-r--r-- | drivers/nvme/target/fc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvme/target/fc.c b/drivers/nvme/target/fc.c index e5d30bbb1b10..4a44fd348567 100644 --- a/drivers/nvme/target/fc.c +++ b/drivers/nvme/target/fc.c @@ -2377,6 +2377,7 @@ nvmet_fc_add_port(struct nvmet_port *port) if (!tgtport->port) { tgtport->port = port; port->priv = tgtport; + nvmet_fc_tgtport_get(tgtport); ret = 0; } else ret = -EALREADY; |