qcacmn: Fix OOB array access

User-ID starts from 0 and can go upto HAL_MAX_UL_MU_USERS-1.

Change-Id: Iedbc48f03d7375496f34f541c1cca25fef9336df
CRs-Fixed: 3629330
This commit is contained in:
Anirban Sirkhell
2023-09-29 19:49:43 +05:30
committed by Ravindra Konda
parent 310b6b1bfc
commit aa8c23c911

View File

@@ -322,7 +322,7 @@ dp_rx_mon_pf_tag_to_buf_headroom_2_0(void *nbuf,
}
user_id = ppdu_info->user_id;
if (qdf_unlikely(user_id > HAL_MAX_UL_MU_USERS)) {
if (qdf_unlikely(user_id >= HAL_MAX_UL_MU_USERS)) {
dp_mon_debug("Invalid user_id user_id: %d pdev: %pK", user_id, pdev);
return;
}