linux/sound
Murad Masimov c9bd4a82b4 ALSA: hda/cs8409: Fix possible NULL dereference
If snd_hda_gen_add_kctl fails to allocate memory and returns NULL, then
NULL pointer dereference will occur in the next line.

Since dolphin_fixups function is a hda_fixup function which is not supposed
to return any errors, add simple check before dereference, ignore the fail.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 20e5077241 ("ALSA: hda/cs8409: Add support for dolphin")
Signed-off-by: Murad Masimov <m.masimov@maxima.ru>
Link: https://patch.msgid.link/20241010221649.1305-1-m.masimov@maxima.ru
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2024-10-11 11:14:06 +02:00
..
ac97
aoa ALSA: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-09-20 17:44:52 +02:00
arm
atmel
core ALSA: core: add isascii() check to card ID generator 2024-10-03 09:16:58 +02:00
drivers
firewire ALSA: firewire: use nonatomic PCM operation 2024-09-04 21:51:54 +09:00
hda ALSA: hda: Add missing parameter description for snd_hdac_stream_timecounter_init() 2024-10-03 09:24:45 +02:00
i2c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
isa ALSA: gus: Fix some error handling paths related to get_bpos() usage 2024-10-04 09:02:30 +02:00
mips
oss [tree-wide] finally take no_llseek out 2024-09-27 08:18:43 -07:00
parisc
pci ALSA: hda/cs8409: Fix possible NULL dereference 2024-10-11 11:14:06 +02:00
pcmcia
ppc
sh
soc sound fixes for 6.12-rc2 2024-10-04 11:29:46 -07:00
sparc
spi
synth
usb ALSA: line6: update contact information 2024-10-10 14:02:57 +02:00
virtio
x86
xen
ac97_bus.c
Kconfig sound: Make CONFIG_SND depend on INDIRECT_IOMEM instead of UML 2024-10-10 16:11:18 +02:00
last.c
Makefile
sound_core.c