diff options
| author | Cássio Gabriel <cassiogabrielcontato@gmail.com> | 2026-05-12 11:03:53 -0300 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-05-14 09:49:31 +0900 |
| commit | 5a30862dec5a70da0a9d259de3f87a7542cc95b2 (patch) | |
| tree | 1180ca083ff29e0731bb44851d7662602297e1e4 /tools/perf/scripts/python/task-analyzer.py | |
| parent | 8b7c5cc7f6e655087164eb902131de356f6d5984 (diff) | |
ASoC: sdw_utils: Check speaker component string allocation
devm_kasprintf() can fail while building the temporary speaker
component string. If that happens, spk_components is set to NULL, but
the current code can still pass it to strlen() on a later loop iteration
or after the loop when appending the speaker component list to
card->components.
Use NULL to represent the initial "no speaker components" state, and
return -ENOMEM immediately if building spk_components fails.
Fixes: 0f60ecffbfe3 ("ASoC: sdw_utils: generate combined spk components string")
Signed-off-by: Cássio Gabriel <cassiogabrielcontato@gmail.com>
Link: https://patch.msgid.link/20260512-asoc-sdw-utils-spk-components-alloc-v1-1-c9bbd6d2e123@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
