linux/sound/soc/amd/acp
Cássio Gabriel 1afd8f06dc
ASoC: amd: acp-sdw-legacy: check CPU DAI name before logging
devm_kasprintf() can fail and return NULL. The legacy AMD SoundWire
machine driver logs cpus->dai_name before checking the allocation result.

Move the debug print after the NULL check, matching the ordering used by
the SOF AMD SoundWire path after commit 5726b68473 ("ASoC: amd/sdw_utils:
avoid NULL deref when devm_kasprintf() fails").

Fixes: 2981d9b078 ("ASoC: amd: acp: add soundwire machine driver for legacy stack")
Signed-off-by: Cássio Gabriel <cassiogabrielcontato@gmail.com>
Link: https://patch.msgid.link/20260511-asoc-amd-acp-sdw-legacy-dai-name-null-v1-1-dc6151b6da8a@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2026-05-16 11:24:58 +09:00
..
acp3x-es83xx ASoC: amd: acp3x-es83x: Drop unused include 2026-03-16 01:11:20 +00:00
acp_common.h ASoC: amd: acp: Add legacy driver support acp7.2 based platforms 2025-07-02 11:26:13 +01:00
acp-i2s.c ASoC: amd: acp: update tdm channels for specific DAI 2025-12-10 09:17:53 +09:00
acp-legacy-common.c ASoC: amd: acp: Audio is not resuming after s0ix 2025-12-03 11:26:16 +00:00
acp-legacy-mach.c ASoC: amd: acp: Add DMI quirk for Valve Steam Deck OLED 2026-04-27 06:54:14 +09:00
acp-mach-common.c ASoC: amd: acp: Add DMI quirk for Valve Steam Deck OLED 2026-04-27 06:54:14 +09:00
acp-mach.h ASoC: amd: acp: Add DMI quirk for Valve Steam Deck OLED 2026-04-27 06:54:14 +09:00
acp-pci.c ASoC: amd: acp: Add legacy driver support acp7.2 based platforms 2025-07-02 11:26:13 +01:00
acp-pdm.c ASoC: amd: acp: Remove redundant acp_dev_data structure 2025-03-11 17:18:29 +00:00
acp-platform.c ASoC: amd: name back to pcm_new()/pcm_free() 2026-03-16 13:37:42 +00:00
acp-rembrandt.c ASoC: amd: use int type to store negative error codes 2025-08-28 16:07:44 +02:00
acp-renoir.c ASoC: amd: acp: Fix NULL pointer deref on acp resume path 2025-04-25 13:35:05 +01:00
acp-sdw-legacy-mach.c ASoC: amd: acp-sdw-legacy: check CPU DAI name before logging 2026-05-16 11:24:58 +09:00
acp-sdw-mach-common.c ASoC: amd: acp: add machine driver changes for ACP7.0 and ACP7.1 platforms 2025-02-07 13:33:57 +00:00
acp-sdw-sof-mach.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
acp-sof-mach.c ASoC: amd: acp: Add DMI quirk for Valve Steam Deck OLED 2026-04-27 06:54:14 +09:00
acp63.c Linux 6.15-rc5 2025-05-06 10:00:58 +02:00
acp70.c ASoC: amd: acp: Add legacy driver support acp7.2 based platforms 2025-07-02 11:26:13 +01:00
amd-acp63-acpi-match.c ASoC: amd: acp: Add ACP6.3 match entries for Cirrus Logic parts 2026-03-01 23:48:10 +00:00
amd-acp70-acpi-match.c ASoC: amd: acp: add PX13 SoundWire machine link for rt721+tas2783x2 2026-03-16 00:14:35 +00:00
amd-acpi-mach.c ASoC: amd: acp: Fix pointer assignments for snd_soc_acpi_mach structures 2025-06-09 13:57:35 +01:00
amd-sdw-acpi.c ASoC: amd: acp: Remove (explicitly) unused header 2025-08-28 16:26:59 +02:00
amd.h ASoC: amd: acp: Adjust pdm gain value 2025-09-02 10:50:28 +01:00
chip_offset_byte.h ASoC: amd: acp: Add new interrupt handle callbacks in acp_common_hw_ops 2025-03-11 17:18:28 +00:00
Kconfig ASoC: amd: acp: Fix Kconfig dependencies for SND_SOC_ACPI_AMD_SDCA_QUIRKS 2026-01-23 15:46:41 +00:00
Makefile ASoC: amd: acp: soc-acpi: add is_device_rt712_vb() helper 2026-01-12 20:08:38 +00:00
soc_amd_sdw_common.h ASoC: amd: acp: Add SoundWire legacy machine driver support for acp7.2 platform 2025-08-01 14:36:06 +01:00
soc-acpi-amd-sdca-quirks.c ASoC: amd: acp: soc-acpi: add is_device_rt712_vb() helper 2026-01-12 20:08:38 +00:00
soc-acpi-amd-sdca-quirks.h ASoC: amd: acp: Fix Kconfig dependencies for SND_SOC_ACPI_AMD_SDCA_QUIRKS 2026-01-23 15:46:41 +00:00