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: [email protected] Signed-off-by: Shreyas Deodhar <[email protected]> Signed-off-by: Nilesh Javali <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Himanshu Madhani <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
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)