diff --git a/scst/src/scst_lib.c b/scst/src/scst_lib.c index bafb836ad..7bb25fc31 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -1719,7 +1719,7 @@ static void scst_check_reassign_sess(struct scst_session *sess) TRACE_ENTRY(); - if (tgt_dev->sess->shut_phase != SCST_SESS_SPH_READY) + if (sess->shut_phase != SCST_SESS_SPH_READY) goto out; TRACE_MGMT_DBG("Checking reassignment for sess %p (initiator %s)",