diff --git a/scst/src/scst_lib.c b/scst/src/scst_lib.c index 45c9d48ef..df3b9558a 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -2486,7 +2486,7 @@ static void scst_check_reassign_sess(struct scst_session *sess) acg->acg_name); old_acg = sess->acg; - sess->acg = NULL; /* to catch implicit dependencies earlier */ + sess->acg = acg; retry_add: add_failed = false; @@ -2559,8 +2559,6 @@ next: goto retry_add; } - sess->acg = acg; - TRACE_DBG("Moving sess %p from acg %s to acg %s", sess, old_acg->acg_name, acg->acg_name); list_move_tail(&sess->acg_sess_list_entry, &acg->acg_sess_list);