1
linux/sound/pci/hda
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
..
ca0132_regs.h
cirrus_scodec_test.c
cirrus_scodec.c
cirrus_scodec.h
cs35l41_hda_i2c.c ALSA: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-09-20 17:44:52 +02:00
cs35l41_hda_property.c Merge branch 'for-next' into for-linus 2024-07-15 08:17:55 +02:00
cs35l41_hda_property.h
cs35l41_hda_spi.c ALSA: hda: cs35l41: fix module autoloading 2024-08-18 09:47:30 +02:00
cs35l41_hda.c ALSA: hda: cs35l41: Remove redundant call to hda_cs_dsp_control_remove() 2024-08-13 13:43:00 +02:00
cs35l41_hda.h ALSA: hda: cs35l41: Fix missing Speaker ID GPIO description in _DSD 2024-07-04 14:47:12 +02:00
cs35l56_hda_i2c.c
cs35l56_hda_spi.c
cs35l56_hda.c ALSA: hda: cs35l56: Don't use the device index as a calibration index 2024-08-21 15:23:33 +02:00
cs35l56_hda.h ALSA: hda: cs35l56: Stop creating ALSA controls for firmware coefficients 2024-08-05 09:49:03 +02:00
hda_auto_parser.c
hda_auto_parser.h
hda_beep.c
hda_beep.h
hda_bind.c
hda_codec.c ALSA: Reorganize kerneldoc parameter names 2024-09-30 16:02:08 +02:00
hda_component.c ALSA: hda/realtek: Autodetect Cirrus Logic companion amplifier bindings 2024-08-29 18:17:08 +02:00
hda_component.h ALSA: hda/realtek: Autodetect Cirrus Logic companion amplifier bindings 2024-08-29 18:17:08 +02:00
hda_controller_trace.h
hda_controller.c ALSA: hda: fix trigger_tstamp_latched 2024-10-02 12:50:24 +02:00
hda_controller.h Revert "ALSA: hda: Conditionally use snooping for AMD HDMI" 2024-10-02 18:00:50 +02:00
hda_cs_dsp_ctl.c ALSA: hda: Drop NULL check for snd_ctl_remove() 2024-06-18 12:54:08 +02:00
hda_cs_dsp_ctl.h
hda_eld.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
hda_generic.c ALSA: hda/generic: Unconditionally prefer preferred_dacs pairs 2024-10-02 08:13:34 +02:00
hda_generic.h ALSA: hda/generic: Drop obsoleted obey_preferred_dacs flag 2024-10-02 08:13:47 +02:00
hda_hwdep.c
hda_intel_trace.h
hda_intel.c ASoC: Fixes for v6.12 2024-10-02 21:29:16 +02:00
hda_intel.h ALSA: hda: Keep PM disablement for deny-listed instance 2024-07-30 07:45:49 +02:00
hda_jack.c
hda_jack.h
hda_local.h
hda_proc.c
hda_sysfs.c
hda_tegra.c
hp_x360_helper.c
ideapad_s740_helper.c
Kconfig Merge branch 'for-linus' into for-next 2024-06-25 11:56:22 +02:00
Makefile ALSA: hda/senarytech: add senarytech codec support 2024-06-18 11:59:08 +02:00
patch_analog.c
patch_ca0110.c
patch_ca0132.c
patch_cirrus.c
patch_cmedia.c ALSA: hda: Add a new CM9825 standard driver 2024-09-11 08:29:03 +02:00
patch_conexant.c ALSA: hda/conexant - Fix audio routing for HP EliteOne 1000 G2 2024-10-09 16:56:22 +02:00
patch_cs8409-tables.c
patch_cs8409.c ALSA: hda/cs8409: Fix possible NULL dereference 2024-10-11 11:14:06 +02:00
patch_cs8409.h
patch_hdmi.c ALSA: hda: add HDMI codec ID for Intel PTL 2024-08-30 09:35:16 +02:00
patch_realtek.c ALSA: hda: Sound support for HP Spectre x360 16 inch model 2024 2024-10-08 10:07:32 +02:00
patch_senarytech.c ALSA: hda/senarytech: add senarytech codec support 2024-06-18 11:59:08 +02:00
patch_si3054.c
patch_sigmatel.c
patch_via.c
tas2781_hda_i2c.c sound fixes for 6.12-rc2 2024-10-04 11:29:46 -07:00
thinkpad_helper.c