Commit bd4b2da
committed
dma-trace: avoid multiple allocations to fix fuzzy IPC
The fuzzy IPC testing reports there is memory leak if dma_trace_config
IPC is sent multiple times, we should just return if the DMA trace
buffer is already allocated, to avoid allocating new buffers and the
leakage of the old buffers.
Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>1 parent 42ab3bd commit bd4b2da
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
407 | 407 | | |
408 | 408 | | |
409 | 409 | | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
410 | 414 | | |
411 | 415 | | |
412 | 416 | | |
| |||
0 commit comments