diff options
author | James Smart <jsmart2021@gmail.com> | 2017-04-11 20:32:32 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2017-04-21 16:41:51 +0200 |
commit | 568ad51e5d32c7f0a8e3138bc9df2badfcce0304 (patch) | |
tree | 020f232b0f78c93bb5601b88074346c8f2b3b047 /drivers/nvme | |
parent | nvmet_fc: Rework target side abort handling (diff) | |
download | linux-568ad51e5d32c7f0a8e3138bc9df2badfcce0304.tar.xz linux-568ad51e5d32c7f0a8e3138bc9df2badfcce0304.zip |
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; |