mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
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:
parent
871207dc66
commit
9d28e0e462
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue