From: Gleb C. <lna...@ya...> - 2024-09-04 11:37:24
|
Commit: 4580c85 GitHub URL: https://github.com/SCST-project/scst/commit/4580c85a6e2101a463c958403199f1a7f5c987e6 Author: Gleb Chesnokov Date: 2024-09-04T14:34:12+03:00 Log Message: ----------- qla2x00t-32gbit: Fix for possible memory corruption Init Control Block is dereferenced incorrectly. Correctly dereference ICB Cc: st...@vg... Signed-off-by: Shreyas Deodhar <sde...@ma...> Signed-off-by: Nilesh Javali <nj...@ma...> Link: https://lore.kernel.org/r/202...@ma... Reviewed-by: Himanshu Madhani <him...@or...> Signed-off-by: Martin K. Petersen <mar...@or...> [ commit c03d740152f7 upstream ] Modified Paths: -------------- qla2x00t-32gbit/qla_os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) =================================================================== diff --git a/qla2x00t-32gbit/qla_os.c b/qla2x00t-32gbit/qla_os.c index 6c6ff1e..cebc84d 100644 --- a/qla2x00t-32gbit/qla_os.c +++ b/qla2x00t-32gbit/qla_os.c @@ -4767,7 +4767,7 @@ static void qla2x00_number_of_exch(scsi_qla_host_t *vha, u32 *ret_cnt, u16 max_cnt) { u32 temp; - struct init_cb_81xx *icb = (struct init_cb_81xx *)&vha->hw->init_cb; + struct init_cb_81xx *icb = (struct init_cb_81xx *)vha->hw->init_cb; *ret_cnt = FW_DEF_EXCHANGES_CNT; if (max_cnt > vha->hw->max_exchg) |