diff options
author | Kai Vehmanen <[email protected]> | 2020-01-24 15:36:22 -0600 |
---|---|---|
committer | Mark Brown <[email protected]> | 2020-01-27 17:52:09 +0000 |
commit | e6110114d18d330c05fd6de9f31283fd086a5a3a (patch) | |
tree | c40211cb7a850ea515cebca5948cf6ac28090d2d /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 410e5e55c9c1c9c0d452ac5b9adb37b933a7747e (diff) |
ASoC: SOF: trace: fix unconditional free in trace release
Check if DMA pages were successfully allocated in initialization
before calling free. For many types of memory (like sgbufs)
the extra free is harmless, but not all backends track allocation
state, so add an explicit check.
Signed-off-by: Kai Vehmanen <[email protected]>
Signed-off-by: Pierre-Louis Bossart <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions