aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorPierre-Louis Bossart <[email protected]>2023-03-24 09:44:02 +0800
committerMark Brown <[email protected]>2023-03-29 15:03:04 +0100
commit3bcced019eb266e91b7eecc1f8fd3da5f55ca4cd (patch)
tree82f20901217482d1f37c5214cb8136c80886ce6c /tools/perf/scripts/python/bin/stackcollapse-record
parentbe8e5a850eb1780bae360b9b48b6d2ab70e5fb03 (diff)
ASoC: codecs: rt700-sdw: simplify set_stream
Using a dynamic allocation to store a single pointer is not very efficient/useful. Worse, the memory is released in the SoundWire stream.c file, but still accessed in the DAI shutdown, leading to kmemleak reports. And last the API requires the previous stream information to be cleared when the argument is NULL. Simplify the code to address all 3 problems. Signed-off-by: Pierre-Louis Bossart <[email protected]> Reviewed-by: Péter Ujfalusi <[email protected]> Reviewed-by: Rander Wang <[email protected]> Signed-off-by: Bard Liao <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions