]> git.itanic.dy.fi Git - linux-stable/commit
scsi: qla2xxx: Fix session lookup in qlt_abort_work()
authorBart Van Assche <bvanassche@acm.org>
Fri, 9 Aug 2019 03:01:40 +0000 (20:01 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Dec 2019 19:39:48 +0000 (20:39 +0100)
commita5caef09ebace942a12b0e17476ffb1ff2e9c784
treec8547b7750d3cb75b326661a549dfa6f99e76c73
parent890140f2d4b3e111c99f3d97ca3c165db806f76c
scsi: qla2xxx: Fix session lookup in qlt_abort_work()

[ Upstream commit ac452b8e79320c9e90c78edf32ba2d42431e4daf ]

Pass the correct session ID to find_sess_by_s_id() instead of passing an
uninitialized variable.

Cc: Himanshu Madhani <hmadhani@marvell.com>
Fixes: 2d70c103fd2a ("[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>
drivers/scsi/qla2xxx/qla_target.c