diff options
| -rw-r--r-- | drivers/target/tcm_fc/tfc_sess.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/target/tcm_fc/tfc_sess.c b/drivers/target/tcm_fc/tfc_sess.c index 132972657991..21ce50880c79 100644 --- a/drivers/target/tcm_fc/tfc_sess.c +++ b/drivers/target/tcm_fc/tfc_sess.c | |||
| @@ -51,7 +51,7 @@ static void ft_sess_delete_all(struct ft_tport *); | |||
| 51 | * Lookup or allocate target local port. | 51 | * Lookup or allocate target local port. |
| 52 | * Caller holds ft_lport_lock. | 52 | * Caller holds ft_lport_lock. |
| 53 | */ | 53 | */ |
| 54 | static struct ft_tport *ft_tport_create(struct fc_lport *lport) | 54 | static struct ft_tport *ft_tport_get(struct fc_lport *lport) |
| 55 | { | 55 | { |
| 56 | struct ft_tpg *tpg; | 56 | struct ft_tpg *tpg; |
| 57 | struct ft_tport *tport; | 57 | struct ft_tport *tport; |
| @@ -115,7 +115,7 @@ static void ft_tport_delete(struct ft_tport *tport) | |||
| 115 | void ft_lport_add(struct fc_lport *lport, void *arg) | 115 | void ft_lport_add(struct fc_lport *lport, void *arg) |
| 116 | { | 116 | { |
| 117 | mutex_lock(&ft_lport_lock); | 117 | mutex_lock(&ft_lport_lock); |
| 118 | ft_tport_create(lport); | 118 | ft_tport_get(lport); |
| 119 | mutex_unlock(&ft_lport_lock); | 119 | mutex_unlock(&ft_lport_lock); |
| 120 | } | 120 | } |
| 121 | 121 | ||
| @@ -352,7 +352,7 @@ static int ft_prli_locked(struct fc_rport_priv *rdata, u32 spp_len, | |||
| 352 | struct ft_node_acl *acl; | 352 | struct ft_node_acl *acl; |
| 353 | u32 fcp_parm; | 353 | u32 fcp_parm; |
| 354 | 354 | ||
| 355 | tport = ft_tport_create(rdata->local_port); | 355 | tport = ft_tport_get(rdata->local_port); |
| 356 | if (!tport) | 356 | if (!tport) |
| 357 | goto not_target; /* not a target for this local port */ | 357 | goto not_target; /* not a target for this local port */ |
| 358 | 358 | ||
