aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/target/loopback/tcm_loop.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/target/loopback/tcm_loop.c')
-rw-r--r--drivers/target/loopback/tcm_loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/target/loopback/tcm_loop.c b/drivers/target/loopback/tcm_loop.c
index 54b5b94dad37..bc8918f382e4 100644
--- a/drivers/target/loopback/tcm_loop.c
+++ b/drivers/target/loopback/tcm_loop.c
@@ -805,7 +805,7 @@ static int tcm_loop_drop_nexus(
805 /* 805 /*
806 * Release the SCSI I_T Nexus to the emulated Target Port 806 * Release the SCSI I_T Nexus to the emulated Target Port
807 */ 807 */
808 transport_deregister_session(tl_nexus->se_sess); 808 target_remove_session(se_sess);
809 tpg->tl_nexus = NULL; 809 tpg->tl_nexus = NULL;
810 kfree(tl_nexus); 810 kfree(tl_nexus);
811 return 0; 811 return 0;