android_kernel_xiaomi_sm8350/sound/soc
Jean Delvare e3145dfb7b ALSA: ASoC: Fix cs4270 error path
The error path in cs4270_probe/cs4270_remove is pretty broken:
* If cs4270_probe fails, codec is leaked.
* If snd_soc_register_card fails, cs4270_i2c_driver stays registered.
* If I2C support is enabled but no I2C device is found, i2c_del_driver
  is never called (neither in cs4270_probe nor in cs4270_remove.

Fix all 3 problems by implementing a clean error path in cs4270_probe
and jumping to its labels as needed.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2008-09-30 12:47:12 +02:00
..
at32 ALSA: ASoC: Fix at32-pcm build breakage with PM enabled 2008-09-22 12:14:28 +02:00
at91 removed unused #include <linux/version.h>'s 2008-08-23 12:14:12 -07:00
au1x ALSA: Au1xpsc: psc not disabled when TX is idle 2008-07-15 15:08:28 +02:00
codecs ALSA: ASoC: Fix cs4270 error path 2008-09-30 12:47:12 +02:00
davinci [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
fsl ALSA: ASoC: fix SNDCTL_DSP_SYNC support in Freescale 8610 sound drivers 2008-08-04 12:26:23 +02:00
omap ALSA: ASoC: Fix error paths in N810 machine driver init and release clocks at exit 2008-08-26 12:44:03 +02:00
pxa ALSA: ASoC: fix pxa2xx-i2s clk_get call 2008-09-01 08:34:46 +02:00
s3c24xx [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
sh
Kconfig ALSA: ASoC: Au12x0/Au1550 PSC Audio support 2008-07-10 09:33:07 +02:00
Makefile ALSA: ASoC: Au12x0/Au1550 PSC Audio support 2008-07-10 09:33:07 +02:00
soc-core.c
soc-dapm.c ALSA: ASoC: Export dapm_reg_event() fully 2008-07-29 16:00:33 +02:00