Unverified Commit 2ee49469 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!11212 [sync] PR-11123: fix CVE-2024-42288

Merge Pull Request from: @openeuler-sync-bot 
 

Origin pull request: 
https://gitee.com/openeuler/kernel/pulls/11123 
 
PR sync from: Lin Yujun <linyujun809@huawei.com>
https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/ZRURVFLRRDCL7LBLU6EGYBYXNTK2HHEC/ 
Shreyas Deodhar (1):
  scsi: qla2xxx: Fix for possible memory corruption


-- 
2.34.1
 
https://gitee.com/src-openeuler/kernel/issues/IAKPQM 
 
Link:https://gitee.com/openeuler/kernel/pulls/11212

 

Reviewed-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parents 4784f0c3 8bb5fa68
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4448,7 +4448,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)