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
This commit is contained in:
Houston Hoffman 2016-11-14 18:01:05 -08:00 • committed by qcabuildsw
commit 7fe51b1cf3

View file

@ -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