From 9d28e0e462cf458c8aa75eb2b778dbc8adc0a6d2 Mon Sep 17 00:00:00 2001 From: Rakesh Pillai Date: Thu, 8 Aug 2019 06:05:27 +0530 Subject: [PATCH] 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 --- hif/inc/hif.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hif/inc/hif.h b/hif/inc/hif.h index 6185b1036955..d24f0cac09f3 100644 --- a/hif/inc/hif.h +++ b/hif/inc/hif.h @@ -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 /**