qcacmn: Fix qdf_mem_header_assert_valid check failure

In ce_alloc_ring_state(), in case of DMA coherent failure driver
trying to free wrong pointer, instead of allocated pointer which
leads to qdf_mem_header_assert_valid check failure.

Free the actual allocated pointer in case of DMA coherent failure

Change-Id: I227c8240ca37a138335bb0766445564a10493c56
CRs-Fixed: 2320196
This commit is contained in:
Alok Kumar 2018-09-21 15:42:06 +05:30 • committed by nshrivas
commit fea70e3c49

View file

@ -1045,7 +1045,7 @@ static struct CE_ring_state *ce_alloc_ring_state(struct CE_state *CE_state,
QDF_STATUS_SUCCESS) {
HIF_ERROR("%s: ring has no DMA mem",
__func__);
qdf_mem_free(ptr);
qdf_mem_free(ce_ring);
return NULL;
}
ce_ring->base_addr_CE_space_unaligned = base_addr;