diff options
| author | 2026-05-12 11:03:53 -0300 | |
|---|---|---|
| committer | 2026-05-14 09:49:31 +0900 | |
| commit | 5a30862dec5a70da0a9d259de3f87a7542cc95b2 (patch) | |
| tree | 1180ca083ff29e0731bb44851d7662602297e1e4 /include/linux/amba/ssh:/git@git.zx2c4.com | |
| parent | ASoC: cs35l56: Check for successful runtime-resume in cs35l56_dsp_work() (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 'include/linux/amba/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
