Add check for dereferencing pointer shmem_arena_ctx to avoid array out of bound error Change-Id: I6d7caddb3ed83fb5e7397de827cd57e8d238a640 CRs-Fixed: 3620074
@@ -942,7 +942,7 @@ uint16_t mgmt_rx_reo_get_valid_link_bitmap(uint8_t grp_id)
{
struct wlan_host_mlo_glb_h_shmem_arena_ctx *shmem_arena_ctx;
- if (grp_id > WLAN_MAX_MLO_GROUPS)
+ if (grp_id >= WLAN_MAX_MLO_GROUPS)
return 0;
shmem_arena_ctx = get_shmem_arena_ctx(grp_id);