mirror-linux/sound
Wentao Liang 822b7ec657 ALSA: hda: Add error check for snd_ctl_rename_id() in snd_hda_create_dig_out_ctls()
Check the return value of snd_ctl_rename_id() in
snd_hda_create_dig_out_ctls(). Ensure that failures
are properly handled.

[ Note: the error cannot happen practically because the only error
  condition in snd_ctl_rename_id() is the missing ID, but this is a
  rename, hence it must be present.  But for the code consistency,
  it's safer to have always the proper return check -- tiwai ]

Fixes: 5c219a3408 ("ALSA: hda: Fix kctl->id initialization")
Cc: stable@vger.kernel.org # 6.4+
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
Link: https://patch.msgid.link/20250213074543.1620-1-vulab@iscas.ac.cn
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2025-02-14 08:45:09 +01:00
..
ac97 ALSA: ac97: bus: Fix the mistake in the comment 2024-11-20 12:42:01 +01:00
aoa
arm
atmel
core ALSA: Switch to use hrtimer_setup() 2025-02-10 09:26:31 +01:00
drivers ALSA: Switch to use hrtimer_setup() 2025-02-10 09:26:31 +01:00
firewire ALSA: firewire: Simplify with str_on_off() 2025-01-08 07:58:39 +01:00
hda ALSA: hda: intel-dsp-config: Add PTL-H support 2025-02-10 09:22:32 +01:00
i2c
isa ALSA: sb: Use str_enabled_disabled() helper in info_read() 2025-01-10 09:11:48 +01:00
mips
oss
parisc
pci ALSA: hda: Add error check for snd_ctl_rename_id() in snd_hda_create_dig_out_ctls() 2025-02-14 08:45:09 +01:00
pcmcia
ppc ALSA: ppc: Remove i2c client removal hack 2025-01-03 13:21:54 +01:00
sh ALSA: Switch to use hrtimer_setup() 2025-02-10 09:26:31 +01:00
soc ASoC: Fixes for v6.14 2025-02-14 08:24:55 +01:00
sparc
spi
synth
usb sound fixes for 6.14-rc1 2025-01-31 09:17:02 -08:00
virtio
x86
xen
Kconfig
Makefile
ac97_bus.c
last.c
sound_core.c