Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 372c1779 authored by Alok Kumar's avatar Alok Kumar Committed by Gerrit - the friendly Code Review server
Browse files

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
parent 3dd1b5eb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -887,7 +887,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;