mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-18 03:01:26 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user