mirror of
https://github.com/brain-hackers/linux-brain.git
synced 2024-06-09 15:26:21 +09:00
scsi: qla2xxx: Fix session lookup in qlt_abort_work()
[ Upstream commitac452b8e79
] Pass the correct session ID to find_sess_by_s_id() instead of passing an uninitialized variable. Cc: Himanshu Madhani <hmadhani@marvell.com> Fixes:2d70c103fd
("[SCSI] qla2xxx: Add LLD target-mode infrastructure for >= 24xx series") # v3.5. Signed-off-by: Bart Van Assche <bvanassche@acm.org> Tested-by: Himanshu Madhani <hmadhani@marvell.com> Reviewed-by: Himanshu Madhani <hmadhani@marvell.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
890140f2d4
commit
a5caef09eb
|
@ -5918,7 +5918,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;
|
||||
|
||||
|
@ -5931,8 +5930,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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user