From c1d9a414159e0bd7f9c0a2e045dc17da256d7f08 Mon Sep 17 00:00:00 2001 From: Houston Hoffman Date: Wed, 30 Mar 2016 21:07:57 -0700 Subject: [PATCH] qcacmn: Fix diag_ce initialization With more copy engines, the diag ce was not moved to the end. The diag_ce was being assigned a null value from the unitialized index. Change-Id: Ib0fc6450712af2dc5e38f00bb692cfb26982ddae CRs-Fixed: 997175 --- hif/src/ce/ce_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hif/src/ce/ce_main.c b/hif/src/ce/ce_main.c index 1aeb199a9553..6c99148cb949 100644 --- a/hif/src/ce/ce_main.c +++ b/hif/src/ce/ce_main.c @@ -1897,8 +1897,7 @@ int hif_config_ce(struct hif_softc *scn) if (pipe_num == DIAG_CE_ID) { /* Reserve the ultimate CE for * Diagnostic Window support */ - hif_state->ce_diag = - hif_state->pipe_info[scn->ce_count - 1].ce_hdl; + hif_state->ce_diag = pipe_info->ce_hdl; continue; }