WSL2-Linux-Kernel/sound
Zhouyang Jia 42b1df406a ALSA: fm801: add error handling for snd_ctl_add
[ Upstream commit ef1ffbe788 ]

When snd_ctl_add fails, the lack of error-handling code may
cause unexpected results.

This patch adds error-handling code after calling snd_ctl_add.

Signed-off-by: Zhouyang Jia <jiazhouyang09@gmail.com>
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-08-03 07:50:22 +02:00
..
aoa
arm
atmel
core ALSA: rawmidi: Change resized buffers atomically 2018-07-25 11:25:07 +02:00
drivers ALSA: aloop: Add missing cable lock to ctl API callbacks 2018-05-09 09:51:50 +02:00
firewire ALSA: dice: fix kernel NULL pointer dereference due to invalid calculation for array index 2018-05-09 09:51:50 +02:00
hda
i2c
isa
mips
oss
parisc
pci ALSA: fm801: add error handling for snd_ctl_add 2018-08-03 07:50:22 +02:00
pcmcia
ppc
sh
soc ASoC: mediatek: preallocate pages use platform device 2018-07-17 11:39:22 +02:00
sparc
spi
synth
usb ALSA: usb-audio: Add native DSD support for Luxman DA-06 2018-05-25 16:17:39 +02:00
x86
Kconfig
Makefile
ac97_bus.c
last.c
sound_core.c