aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorSimon Trimmer <[email protected]>2023-05-18 16:02:48 +0100
committerMark Brown <[email protected]>2023-05-19 11:32:11 +0900
commit608f1b0dbddec6b2fd766c10bcce2b651995e936 (patch)
tree22e825c4db0fdbdd7b10a8f5a8181cc671a99b1f /tools/perf/scripts/python
parentf1fcbaa18b28dec10281551dfe6ed3a3ed80e3d6 (diff)
ASoC: cs35l56: Move DSP part string generation so that it is done only once
Each time we go through dsp_work() it does a devm_kasprintf() to allocate memory to hold the part name string. It's not strictly a memory leak because devm will free it all if the driver is removed. But we keep allocating more and more memory to hold the same string. Move the allocation so that it is performed after the version and secured state information is gathered and handle allocation errors. Signed-off-by: Simon Trimmer <[email protected]> Signed-off-by: Richard Fitzgerald <[email protected]> Link: https://lore.kernel.org/r/Message-Id: <[email protected]> Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions