qcacmn: Make num_int_grp consistent with hif_num_grp

The HIF_MAX_GROUP value is not consistent with the
HIF_NUM_INT_CONTEXTS which can cause out of bound access.

Fix this issue by making both these values same.

CRs-Fixed: 2505220
Change-Id: Ia79d9c03de82a73662c189e61e83e43e71d2ef3f
This commit is contained in:
Rakesh Pillai
2019-08-08 06:05:27 +05:30
committed by nshrivas
parent 871207dc66
commit 9d28e0e462

View File

@@ -116,7 +116,7 @@ struct CE_state;
#define HIF_MAX_GRP_IRQ 16
#ifndef HIF_MAX_GROUP
#define HIF_MAX_GROUP 8
#define HIF_MAX_GROUP 7
#endif
#ifndef NAPI_YIELD_BUDGET_BASED
@@ -328,7 +328,7 @@ enum hif_event_type {
/* HIF_EVENT_HIST_MAX should always be power of 2 */
#define HIF_EVENT_HIST_MAX 512
#define HIF_NUM_INT_CONTEXTS 7
#define HIF_NUM_INT_CONTEXTS HIF_MAX_GROUP
#define HIF_EVENT_HIST_DISABLE_MASK 0
/**