From 7fe51b1cf3777f983d5d50cb2e5f378b1a23e0aa Mon Sep 17 00:00:00 2001 From: Houston Hoffman Date: Mon, 14 Nov 2016 18:01:05 -0800 Subject: [PATCH] qcacmn: Free ce fastpath buffer even if handler not installed Durring a driver load failure, the fastpath buffer is allocated before the fastpath handler is installed. Change the free logic to match the allocation logic. Change-Id: Ib9731b3d06d7ac728e0f23bb32e2b74c35b9a8de CRs-Fixed: 1089933 --- hif/src/ce/ce_main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hif/src/ce/ce_main.c b/hif/src/ce/ce_main.c index 1d8b1439e985..d0a4d945c0f3 100644 --- a/hif/src/ce/ce_main.c +++ b/hif/src/ce/ce_main.c @@ -1055,8 +1055,12 @@ void ce_t2h_msg_ce_cleanup(struct CE_handle *ce_hdl) qdf_nbuf_t nbuf; int i; - if (!ce_state->fastpath_handler) + if (ce_state->scn->fastpath_mode_on == false) return; + + if (!ce_state->htt_rx_data) + return; + /* * when fastpath_mode is on and for datapath CEs. Unlike other CE's, * this CE is completely full: does not leave one blank space, to