Browse Source

qcacmn: ensure dynamic ce_count < CE_COUNT_MAX

This ensures scn->ce_count is less than CE_COUNT_MAX without having to
check all the constants it could be initialized to based on device
type.

Change-Id: I8482b5d7c455366d69dcda2b13785b305f192b3f
CRs-Fixed: 2128347
Yun park 7 years ago
parent
commit
c80eea7fcc
1 changed files with 1 additions and 0 deletions
  1. 1 0
      hif/src/ce/ce_main.c

+ 1 - 0
hif/src/ce/ce_main.c

@@ -2346,6 +2346,7 @@ void hif_ce_prepare_config(struct hif_softc *scn)
 		scn->ce_count = QCA_6290_CE_COUNT;
 		break;
 	}
+	QDF_BUG(scn->ce_count <= CE_COUNT_MAX);
 }
 
 /**