qla2x00t: Correct q2t_abort_task() (merge r4457 from trunk)

git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4633 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2012-11-28 14:07:13 +00:00
parent caf9e827e9
commit 47f66b3bad

View File

@@ -4048,10 +4048,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;
}