diff options
Diffstat (limited to 'drivers/target/tcm_fc/tfc_sess.c')
-rw-r--r-- | drivers/target/tcm_fc/tfc_sess.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/target/tcm_fc/tfc_sess.c b/drivers/target/tcm_fc/tfc_sess.c index 9585010964ec..12d6fa21e5e1 100644 --- a/drivers/target/tcm_fc/tfc_sess.c +++ b/drivers/target/tcm_fc/tfc_sess.c | |||
@@ -430,7 +430,6 @@ static void ft_sess_rcu_free(struct rcu_head *rcu) | |||
430 | { | 430 | { |
431 | struct ft_sess *sess = container_of(rcu, struct ft_sess, rcu); | 431 | struct ft_sess *sess = container_of(rcu, struct ft_sess, rcu); |
432 | 432 | ||
433 | transport_deregister_session(sess->se_sess); | ||
434 | kfree(sess); | 433 | kfree(sess); |
435 | } | 434 | } |
436 | 435 | ||
@@ -438,6 +437,7 @@ static void ft_sess_free(struct kref *kref) | |||
438 | { | 437 | { |
439 | struct ft_sess *sess = container_of(kref, struct ft_sess, kref); | 438 | struct ft_sess *sess = container_of(kref, struct ft_sess, kref); |
440 | 439 | ||
440 | transport_deregister_session(sess->se_sess); | ||
441 | call_rcu(&sess->rcu, ft_sess_rcu_free); | 441 | call_rcu(&sess->rcu, ft_sess_rcu_free); |
442 | } | 442 | } |
443 | 443 | ||