Skip to content

Commit c03d740

Browse files
Shreyas Deodharmartinkpetersen
authored andcommitted
scsi: qla2xxx: Fix for possible memory corruption
Init Control Block is dereferenced incorrectly. Correctly dereference ICB Cc: stable@vger.kernel.org Signed-off-by: Shreyas Deodhar <sdeodhar@marvell.com> Signed-off-by: Nilesh Javali <njavali@marvell.com> Link: https://lore.kernel.org/r/20240710171057.35066-4-njavali@marvell.com Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent eb1d4ce commit c03d740

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/qla2xxx/qla_os.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4689,7 +4689,7 @@ static void
46894689
qla2x00_number_of_exch(scsi_qla_host_t *vha, u32 *ret_cnt, u16 max_cnt)
46904690
{
46914691
u32 temp;
4692-
struct init_cb_81xx *icb = (struct init_cb_81xx *)&vha->hw->init_cb;
4692+
struct init_cb_81xx *icb = (struct init_cb_81xx *)vha->hw->init_cb;
46934693
*ret_cnt = FW_DEF_EXCHANGES_CNT;
46944694

46954695
if (max_cnt > vha->hw->max_exchg)

0 commit comments

Comments
 (0)