sst-linux/sound
Henry Martin 38253922a8 ASoC: imx-card: Add NULL check in imx_card_probe()
[ Upstream commit 93d34608fd162f725172e780b1c60cc93a920719 ]

devm_kasprintf() returns NULL when memory allocation fails. Currently,
imx_card_probe() does not check for this case, which results in a NULL
pointer dereference.

Add NULL check after devm_kasprintf() to prevent this issue.

Fixes: aa736700f4 ("ASoC: imx-card: Add imx-card machine driver")
Signed-off-by: Henry Martin <bsdhenrymartin@gmail.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20250401142510.29900-1-bsdhenrymartin@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-04-10 14:33:40 +02:00
..
ac97
aoa
arm
atmel
core ALSA: seq: oss: Fix races at processing SysEx messages 2025-01-09 13:30:05 +01:00
drivers
firewire ALSA: firewire-lib: fix return value on fail in amdtp_tscm_init() 2024-11-14 13:15:13 +01:00
hda ASoC: Intel: sst: Support LPE0F28 ACPI HID 2024-12-14 19:53:08 +01:00
i2c
isa
mips
oss
parisc
pci ALSA: hda/realtek: Add mute LED quirk for HP Pavilion x360 14-dy1xxx 2025-04-10 14:33:39 +02:00
pcmcia
ppc
sh ALSA: sh: aica: reorder cleanup operations to avoid UAF bugs 2024-04-03 15:19:50 +02:00
soc ASoC: imx-card: Add NULL check in imx_card_probe() 2025-04-10 14:33:40 +02:00
sparc
spi
synth ALSA: emux: improve patch ioctl data validation 2024-07-05 09:31:49 +02:00
usb ALSA: usb-audio: Add quirk for Plantronics headsets to fix control names 2025-04-07 10:05:44 +02:00
virtio
x86
xen
ac97_bus.c
Kconfig sound: Make CONFIG_SND depend on INDIRECT_IOMEM instead of UML 2024-11-17 15:07:20 +01:00
last.c
Makefile
sound_core.c