From 74713a49d299ffd7a11ce30bf64e3dfbc47735e0 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Wed, 8 Aug 2012 18:29:10 +0000 Subject: [PATCH] ha->tgt must be used here instead of sess->tgt Found by smatch, reported by Bart Van Assche git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4457 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- qla2x00t/qla2x00-target/qla2x00t.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qla2x00t/qla2x00-target/qla2x00t.c b/qla2x00t/qla2x00-target/qla2x00t.c index 65102754d..ddae582f3 100644 --- a/qla2x00t/qla2x00-target/qla2x00t.c +++ b/qla2x00t/qla2x00-target/qla2x00t.c @@ -4034,10 +4034,10 @@ static int q2t_abort_task(scsi_qla_host_t *ha, notify_entry_t *iocb) if (sess == NULL) { TRACE_MGMT_DBG("qla2x00t(%ld): task abort for unexisting " "session", ha->instance); - res = q2t_sched_sess_work(sess->tgt, Q2T_SESS_WORK_ABORT, iocb, + res = q2t_sched_sess_work(ha->tgt, Q2T_SESS_WORK_ABORT, iocb, sizeof(*iocb)); if (res != 0) - sess->tgt->tm_to_unknown = 1; + ha->tgt->tm_to_unknown = 1; goto out; }