diff options
-rw-r--r-- | drivers/target/tcm_fc/tfc_sess.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/target/tcm_fc/tfc_sess.c b/drivers/target/tcm_fc/tfc_sess.c index 7491e21cc6a..a40541c3df8 100644 --- a/drivers/target/tcm_fc/tfc_sess.c +++ b/drivers/target/tcm_fc/tfc_sess.c | |||
@@ -64,7 +64,8 @@ static struct ft_tport *ft_tport_create(struct fc_lport *lport) | |||
64 | struct ft_tport *tport; | 64 | struct ft_tport *tport; |
65 | int i; | 65 | int i; |
66 | 66 | ||
67 | tport = rcu_dereference(lport->prov[FC_TYPE_FCP]); | 67 | tport = rcu_dereference_protected(lport->prov[FC_TYPE_FCP], |
68 | lockdep_is_held(&ft_lport_lock)); | ||
68 | if (tport && tport->tpg) | 69 | if (tport && tport->tpg) |
69 | return tport; | 70 | return tport; |
70 | 71 | ||