From a0e87fb77977f62ece61eb5832e8529dc35541bf Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 12 Dec 2010 12:42:30 +0000 Subject: [PATCH] Don't read uninitialized variables (was introduced in r2867). git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3030 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst/src/scst_lib.c b/scst/src/scst_lib.c index 89cf055ca..411af3c28 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -1716,7 +1716,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)",