ha->tgt must be used here instead of sess->tgt

Found by smatch, reported by Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4457 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2012-08-08 18:29:10 +00:00
parent cdb13cfc5f
commit 74713a49d2

View File

@@ -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;
}