commit | 9d6160b373e931c13d91d4c627b93d0028b5ceb3 | [log] [tgz] |
---|---|---|
author | Ajit Pandey <ajitp@codeaurora.org> | Thu Mar 28 19:36:36 2019 +0530 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Fri Oct 18 04:48:37 2019 -0700 |
tree | f1a5c76887e0d0dfae85240fa9338c36695d7198 | |
parent | 360a45bad1e15550a6f0281ff23ec1841f4ea10d [diff] |
dsp: q6voice: Reset dma_buf pointer to NULL in case of failure In case of voice_alloc_rtac_mem_map_table() failure no memory get allocated for rtac but dma_buf pointer might get corrupted and may point to some unmapped memory region. Since we are only doing NULL pointer check for dma_buf in method is_rtac_memory_allocated() we need to reset such pointer to NULL in failure case. Change-Id: I5e81adad4e302620757375f87fa15344e07dccf8 Signed-off-by: Ajit Pandey <ajitp@codeaurora.org>