mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
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:
parent
ef1f0f90fc
commit
fea70e3c49
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue