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:

committed by
Ravindra Konda

parent
310b6b1bfc
commit
aa8c23c911
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user