diff options
author | Yun park <yunp@codeaurora.org> | 2017-10-06 15:33:36 -0700 |
---|---|---|
committer | snandini <snandini@codeaurora.org> | 2017-11-10 00:27:49 -0800 |
commit | c80eea7fcc5152100da4268200a4c335e168b8a0 (patch) | |
tree | 826ca31437fd348f6738974edaef823ab24de406 /hif | |
parent | a5685dec529c4f866d952d5cf0f230c0595817f7 (diff) | |
download | qca-wfi-host-cmn-c80eea7fcc5152100da4268200a4c335e168b8a0.tar.gz |
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
Diffstat (limited to 'hif')
-rw-r--r-- | hif/src/ce/ce_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hif/src/ce/ce_main.c b/hif/src/ce/ce_main.c index d0570944a..876c4935a 100644 --- a/hif/src/ce/ce_main.c +++ b/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); } /** |