-
Notifications
You must be signed in to change notification settings - Fork 322
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dma-trace: Make dmatb and DMA_GW dma_sg persistent after first alloca…
…tion Do not free the dmatb so that the trace code can continue collecting information continuously in it's buffer. We also have another memory leak (when CONFIG_DMA_GW is set) which can be handled this way: Every time the dma_trace_start() is called we allocate a new dma_sg. This is fine when the dma_trace_start() is only called once right after the DSP finished booting, but multiple calls would eventually going to lead to OOM. Move the dma_sg allocation at the same place where the dmatb is allocated to make it persistent as well. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
- Loading branch information
Showing
2 changed files
with
50 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters