aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorPierre-Louis Bossart <[email protected]>2023-03-24 09:44:08 +0800
committerMark Brown <[email protected]>2023-03-29 15:03:10 +0100
commitb3a2e00e20671091f7175f8f36b7f9c9ea2e77bb (patch)
tree419fb473a3bb6552fd10cbc2ffb353aec620b539 /tools/perf/scripts/python/stackcollapse.py
parentcf1d6a3ad07c982a09455bf8720dc75754909932 (diff)
ASoC: codecs: rt5682-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/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions