Procházet zdrojové kódy

qcacmn: Extend ce_name to include 16 ces for wkk

16 CEs are available in WKK. Extend ce_names array to include 16 CEs to
fix out-of-bound access

Change-Id: I681aee58cb189b726af9d24f3d8fc2bab4ea6f1a
CRs-Fixed: 3136045
Kiran Venkatappa před 3 roky
rodič
revize
6d8cb5bed5
1 změnil soubory, kde provedl 7 přidání a 1 odebrání
  1. 7 1
      hif/src/ce/ce_tasklet.c

+ 7 - 1
hif/src/ce/ce_tasklet.c

@@ -816,7 +816,7 @@ irqreturn_t ce_dispatch_interrupt(int ce_id,
  *
  * @ce_name: ce_name
  */
-const char *ce_name[] = {
+const char *ce_name[CE_COUNT_MAX] = {
 	"WLAN_CE_0",
 	"WLAN_CE_1",
 	"WLAN_CE_2",
@@ -829,6 +829,12 @@ const char *ce_name[] = {
 	"WLAN_CE_9",
 	"WLAN_CE_10",
 	"WLAN_CE_11",
+#ifdef QCA_WIFI_QCN9224
+	"WLAN_CE_12",
+	"WLAN_CE_13",
+	"WLAN_CE_14",
+	"WLAN_CE_15",
+#endif
 };
 /**
  * ce_unregister_irq() - ce_unregister_irq