2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-23 04:34:11 +08:00
linux-next/sound
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
..
aoa sound: Convert to menuconfig 2008-05-27 15:56:20 +02:00
arm [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
core ALSA: remove unneeded power_mutex lock in snd_pcm_drop 2008-09-25 17:52:07 +02:00
drivers Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git 2008-07-14 15:51:11 -07:00
i2c V4L/DVB (8523): v4l2-dev: remove unused type and type2 field from video_device 2008-07-27 11:07:10 -03:00
isa ALSA: cs4232: fix crash during chip PNP detection 2008-07-27 10:22:27 +02:00
mips removed unused #include <linux/version.h>'s 2008-08-23 12:14:12 -07:00
oss [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
parisc sound: Convert to menuconfig 2008-05-27 15:56:20 +02:00
pci ALSA: hda - Add mic-boost controls to ALC662/663 auto configuration 2008-09-02 17:25:35 +02:00
pcmcia ALSA: Fix a const to non-const assignment in the Digigram VXpocket sound driver 2008-07-10 09:32:57 +02:00
ppc ALSA: remove CONFIG_KMOD from sound 2008-07-10 09:32:58 +02:00
sh sh: migrate to arch/sh/include/ 2008-07-29 08:09:44 +09:00
soc ALSA: ASoC: Fix cs4270 error path 2008-09-30 12:47:12 +02:00
sparc ALSA: make sparc/dbri.c:snd_dbri_proc() static 2008-06-06 11:55:05 +02:00
spi sound: Convert to menuconfig 2008-05-27 15:56:20 +02:00
synth [ALSA] emux midi synthesizer doesn't honor SOFT_PEDAL-release event 2008-05-13 14:47:43 +02:00
usb ALSA: usb-audio: add some Yamaha USB MIDI quirks 2008-07-10 11:05:42 +02:00
ac97_bus.c [ALSA] ac97_bus power management 2007-02-09 09:03:54 +01:00
Kconfig Fix CONFIG_AC97_BUS dependency 2008-09-06 11:43:41 +02:00
last.c [ALSA] Remove sound/driver.h 2008-01-31 17:29:48 +01:00
Makefile [ALSA] Add SPI devices to ALSA Kconfig and Makefile 2007-10-16 15:57:47 +02:00
sound_core.c device create: sound: convert device_create to device_create_drvdata 2008-07-21 21:54:44 -07:00
sound_firmware.c Detach sched.h from mm.h 2007-05-21 09:18:19 -07:00