linux/sound/soc/amd
Li Qiang 5726b68473
ASoC: amd/sdw_utils: avoid NULL deref when devm_kasprintf() fails
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>
2025-10-15 19:53:20 +01:00
..
acp ASoC: amd/sdw_utils: avoid NULL deref when devm_kasprintf() fails 2025-10-15 19:53:20 +01:00
include
ps ASoC: amd: ps: Add SoundWire pci and dma driver support for acp7.2 platform 2025-08-01 14:36:05 +01:00
raven ASoC: amd: use int type to store negative error codes 2025-08-28 16:07:44 +02:00
renoir
rpl
vangogh ASoC: amd: use int type to store negative error codes 2025-08-28 16:07:44 +02:00
yc ASoC: amd: yc: Add DMI quirk for HP Laptop 17 cp-2033dx 2025-07-16 11:50:33 +01:00
Kconfig ASoC: amd: Standardize ASoC menu 2025-06-24 01:01:10 +01:00
Makefile
acp-config.c
acp-da7219-max98357a.c
acp-es8336.c
acp-pcm-dma.c
acp-rt5645.c
acp.h
acp3x-rt5682-max9836.c
mach-config.h ASoC: amd: acp: add soundwire machine for ACP7.0 and ACP7.1 sof stack 2025-06-23 13:12:14 +01:00