From a5e316fb7eccd53ed5cd7a6c4d0754f80336569f Mon Sep 17 00:00:00 2001 From: Debasis Das Date: Fri, 21 Dec 2018 15:23:04 +0530 Subject: [PATCH] qcacmn: Fix array out-of-bounds in target CE config array The CE11 in target CE config array is used, but not allocated. Fix this by allocating memory for CE11 in the global structure. Change-Id: I85088f5a832aec037a1e46eed4b72ac4228fde44 CRs-Fixed: 2365435 --- hif/src/ce/ce_assignment.h | 1 + 1 file changed, 1 insertion(+) diff --git a/hif/src/ce/ce_assignment.h b/hif/src/ce/ce_assignment.h index 0ce0b12e7258..3eae01be1e7f 100644 --- a/hif/src/ce/ce_assignment.h +++ b/hif/src/ce/ce_assignment.h @@ -678,6 +678,7 @@ static struct CE_pipe_config target_ce_config_wlan_qca8074[] = { { /* CE9 */ 9, PIPEDIR_OUT, 32, 2048, 8192, 0,}, /* CE10 target->host HTT */ { /* CE10 */ 10, PIPEDIR_INOUT_H2H, 0, 0, 0, 0,}, + {/* CE11 unused */11, PIPEDIR_NONE, 0, 0, 0, 0,}, }; static struct CE_attr host_ce_config_wlan_qca8074_pci[] = {