From 53d401ac36cb0bacf7778eba42c73db6a3f45016 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 12 Dec 2010 12:44:24 +0000 Subject: [PATCH] Don't read uninitialized variables (was introduced in r2868). (Merged r3030 from the trunk.) git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3031 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 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)",