From: James Smart Date: Tue, 11 Apr 2017 18:32:32 +0000 (-0700) Subject: nvmet_fc: add missing reference in add_port X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=568ad51e5d32c7f0a8e3138bc9df2badfcce0304;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git nvmet_fc: add missing reference in add_port Add missing reference in add_port Signed-off-by: James Smart Signed-off-by: Sagi Grimberg --- 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;