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>
This commit is contained in:
parent
a97ec51b37
commit
568ad51e5d
|
@ -2377,6 +2377,7 @@ nvmet_fc_add_port(struct nvmet_port *port)
|
||||||
if (!tgtport->port) {
|
if (!tgtport->port) {
|
||||||
tgtport->port = port;
|
tgtport->port = port;
|
||||||
port->priv = tgtport;
|
port->priv = tgtport;
|
||||||
|
nvmet_fc_tgtport_get(tgtport);
|
||||||
ret = 0;
|
ret = 0;
|
||||||
} else
|
} else
|
||||||
ret = -EALREADY;
|
ret = -EALREADY;
|
||||||
|
|
Loading…
Reference in New Issue