diff options
| author | Houston Hoffman <hhoffman@codeaurora.org> | 2016-11-14 18:01:05 -0800 |
|---|---|---|
| committer | qcabuildsw <qcabuildsw@localhost> | 2016-11-15 02:18:11 -0800 |
| commit | f603353fe22d20e79848e640abce57a6f9605a27 (patch) | |
| tree | e7758f3f6a852923c18d4e2ff95313f1678a610c | |
| parent | c98eb2ea5c2751c8c68237a0ca159407a37a2c98 (diff) | |
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
| -rw-r--r-- | hif/src/ce/ce_main.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/hif/src/ce/ce_main.c b/hif/src/ce/ce_main.c index 6d42e8fcf3b1..504cfc641f33 100644 --- a/hif/src/ce/ce_main.c +++ b/hif/src/ce/ce_main.c @@ -1062,8 +1062,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 |
