linux-stable/sound
Dan Carpenter 0a6204baab ASoC: cs42l56: fix up error handling in probe
[ Upstream commit 856fe64da8 ]

There are two issues with this code.  The first error path forgot to set
the error code and instead returns success.  The second error path
doesn't clean up.

Fixes: 272b5edd3b ("ASoC: Add support for CS42L56 CODEC")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/X9NE/9nK9/TuxuL+@mwanda
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-03-03 17:44:35 +01:00
..
aoa ALSA: aoa: onyx: always initialize register read value 2020-01-29 10:24:29 +01:00
arm
atmel
core ALSA: seq: oss: Fix missing error check in snd_seq_oss_synth_make_info() 2021-01-30 13:27:13 +01:00
drivers ALSA: opl3: fix infoleak in opl3 2020-07-22 09:10:46 +02:00
firewire ALSA: bebob: potential info leak in hwdep_read() 2020-10-29 09:05:31 +01:00
hda ALSA: hda: prevent undefined shift in snd_hdac_ext_bus_get_link() 2020-11-18 18:26:24 +01:00
i2c ALSA: i2c/cs8427: Fix int to char conversion 2019-11-28 18:28:29 +01:00
isa ALSA: isa/wavefront: prevent out of bounds write in ioctl 2020-06-30 15:38:20 -04:00
mips
oss
parisc
pci ALSA: hda/realtek - Fix typo of pincfg for Dell quirk 2021-02-10 09:09:27 +01:00
pcmcia ALSA: vxpocket: Fix invalid endian conversions 2018-08-22 07:47:14 +02:00
ppc
sh ALSA: sh: Fix compile warning wrt const 2020-02-28 15:42:29 +01:00
soc ASoC: cs42l56: fix up error handling in probe 2021-03-03 17:44:35 +01:00
sparc ALSA: sparc: Fix invalid snd_free_pages() at error path 2018-12-05 19:42:40 +01:00
spi
synth ALSA: emux: Fix potential Spectre v1 vulnerabilities 2019-01-09 16:16:42 +01:00
usb ALSA: usb-audio: Fix UBSAN warnings for MIDI jacks 2021-01-12 19:49:04 +01:00
ac97_bus.c
Kconfig
last.c
Makefile
sound_core.c sound: fix a memory leak bug 2019-08-25 10:51:18 +02:00