mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-23 21:51:27 +00:00
qla2x00t-32gbit: Fix session lookup in qlt_abort_work()
Pass the correct session ID to find_sess_by_s_id() instead of passing an uninitialized variable. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8327 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -6302,7 +6302,6 @@ static void qlt_abort_work(struct qla_tgt *tgt,
|
||||
struct qla_hw_data *ha = vha->hw;
|
||||
struct fc_port *sess = NULL;
|
||||
unsigned long flags = 0, flags2 = 0;
|
||||
uint32_t be_s_id;
|
||||
uint8_t s_id[3];
|
||||
int rc;
|
||||
|
||||
@@ -6315,8 +6314,7 @@ static void qlt_abort_work(struct qla_tgt *tgt,
|
||||
s_id[1] = prm->abts.fcp_hdr_le.s_id[1];
|
||||
s_id[2] = prm->abts.fcp_hdr_le.s_id[0];
|
||||
|
||||
sess = ha->tgt.tgt_ops->find_sess_by_s_id(vha,
|
||||
(unsigned char *)&be_s_id);
|
||||
sess = ha->tgt.tgt_ops->find_sess_by_s_id(vha, s_id);
|
||||
if (!sess) {
|
||||
spin_unlock_irqrestore(&ha->tgt.sess_lock, flags2);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user