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
diff --git a/hif/src/ce/ce_main.c b/hif/src/ce/ce_main.c
index a323390..b264863 100644
--- a/hif/src/ce/ce_main.c
+++ b/hif/src/ce/ce_main.c
@@ -1045,7 +1045,7 @@
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;