aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPierre-Louis Bossart <[email protected]>2023-03-24 09:44:04 +0800
committerMark Brown <[email protected]>2023-03-29 15:03:06 +0100
commitb2790eccc0bc755d37ed5cd8d225cec0d72798c8 (patch)
tree757e31c4e88f8c2f84a0a1b14e5fbc69585a725c /tools/perf/scripts/python
parentfa55b31fb65347ceab617af7541f0a31b53901f1 (diff)
ASoC: codecs: rt711-sdca: 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')
0 files changed, 0 insertions, 0 deletions