Adding check for dereferencing pointer shmem_arena_ctx to avoid array out of bound error Change-Id: I0aa6682b63e2d2d564b285f7fac745df4b44f1d4 CRs-Fixed: 3620074
@@ -535,7 +535,7 @@ uint8_t mlo_glb_h_shmem_arena_get_no_of_chips_from_crash_info(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);