Files
kernel-sophgo-sg2044-revyos…/sound/soc
Li Qiang a1cccbd196 ASoC: amd/sdw_utils: avoid NULL deref when devm_kasprintf() fails
[ Upstream commit 5726b68473f7153a7f6294185e5998b7e2a230a2 ]

devm_kasprintf() may return NULL on memory allocation failure,
but the debug message prints cpus->dai_name before checking it.
Move the dev_dbg() call after the NULL check to prevent potential
NULL pointer dereference.

Fixes: cb8ea62e64 ("ASoC: amd/sdw_utils: add sof based soundwire generic machine driver")
Signed-off-by: Li Qiang <liqiang01@kylinos.cn>
Link: https://patch.msgid.link/20251015075530.146851-1-liqiang01@kylinos.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-10-23 16:24:37 +02:00
..
2025-06-24 01:01:09 +01:00
2025-06-24 01:01:24 +01:00
2025-07-04 22:42:36 +01:00
2025-06-24 01:01:19 +01:00
2025-06-24 01:01:11 +01:00
2025-06-24 01:01:12 +01:00
2025-06-25 16:27:47 +01:00
2025-06-24 01:01:15 +01:00
2025-06-24 01:01:15 +01:00
2025-09-04 19:31:51 +01:00
2025-06-24 01:01:27 +01:00
2025-06-24 01:01:21 +01:00
2025-06-24 01:01:16 +01:00
2025-06-24 01:01:27 +01:00
2025-06-25 16:27:47 +01:00
2025-06-24 01:01:29 +01:00