qcacmn: Fix array out-of-bounds in the during CE config

The unused CE11 is accessed in ce_construct_shadow_config_srng,
but not allocated.
Fix this by allocating memory for CE11 in the global structure

CRs-Fixed: 2365374
Change-Id: Iefd9129e486891e27f5964eecc1a2d1efc080d06
Цей коміт міститься в:
Vinay Adella
2018-12-14 11:15:56 +05:30
зафіксовано nshrivas
джерело c64e33df96
коміт 77d43a89b9

Переглянути файл

@@ -649,7 +649,7 @@ static struct CE_attr host_ce_config_wlan_qca8074[] = {
{ /* CE9 */ CE_ATTR_FLAGS, 0, 32, 2048, 0, NULL,},
/* target->host HTT */
{ /* CE10 */ CE_ATTR_FLAGS, 0, 0, 2048, 512, NULL,},
/* CE11 unused */
{ /* CE11 unused */ 0, 0, 0, 0, 0, NULL,},
};
static struct CE_pipe_config target_ce_config_wlan_qca8074[] = {
@@ -704,7 +704,7 @@ static struct CE_attr host_ce_config_wlan_qca8074_pci[] = {
{ /* CE9 */ EPPING_CE_FLAGS_POLL, 0, 32, 2048, 0, NULL,},
/* target->host HTT */
{ /* CE10 */ CE_ATTR_FLAGS, 0, 0, 2048, 512, NULL,},
/* CE11 unused */
{ /* CE11 unused */ 0, 0, 0, 0, 0, NULL,},
};
static struct CE_pipe_config target_ce_config_wlan_qca8074_pci[] = {