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:
@@ -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
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user