tmp_suning_uos_patched/sound/soc/codecs
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
..
ac97.c ALSA: asoc: codecs - merge structs snd_soc_codec_dai and snd_soc_cpu_dai. 2008-07-10 09:32:39 +02:00
ac97.h ALSA: asoc: codecs - merge structs snd_soc_codec_dai and snd_soc_cpu_dai. 2008-07-10 09:32:39 +02:00
ak4535.c ALSA: ASoC: Fix double free and memory leak in many codec drivers 2008-08-25 13:49:52 +02:00
ak4535.h ALSA: asoc: codecs - merge structs snd_soc_codec_dai and snd_soc_cpu_dai. 2008-07-10 09:32:39 +02:00
cs4270.c ALSA: ASoC: Fix cs4270 error path 2008-09-30 12:47:12 +02:00
cs4270.h ALSA: asoc: codecs - merge structs snd_soc_codec_dai and snd_soc_cpu_dai. 2008-07-10 09:32:39 +02:00
Kconfig ALSA: ASoC: Add AK4535 driver 2008-06-26 09:01:58 +02:00
Makefile ALSA: ASoC: Add AK4535 driver 2008-06-26 09:01:58 +02:00
tlv320aic3x.c ALSA: ASoC: Fix double free and memory leak in many codec drivers 2008-08-25 13:49:52 +02:00
tlv320aic3x.h ALSA: asoc: codecs - merge structs snd_soc_codec_dai and snd_soc_cpu_dai. 2008-07-10 09:32:39 +02:00
uda1380.c ALSA: ASoC: Fix double free and memory leak in many codec drivers 2008-08-25 13:49:52 +02:00
uda1380.h ALSA: asoc: codecs - merge structs snd_soc_codec_dai and snd_soc_cpu_dai. 2008-07-10 09:32:39 +02:00
wm8510.c ALSA: ASoC: Fix double free and memory leak in many codec drivers 2008-08-25 13:49:52 +02:00
wm8510.h ALSA: asoc: codecs - merge structs snd_soc_codec_dai and snd_soc_cpu_dai. 2008-07-10 09:32:39 +02:00
wm8731.c ALSA: ASoC: Fix double free and memory leak in many codec drivers 2008-08-25 13:49:52 +02:00
wm8731.h ALSA: asoc: codecs - merge structs snd_soc_codec_dai and snd_soc_cpu_dai. 2008-07-10 09:32:39 +02:00
wm8750.c ALSA: ASoC: Fix double free and memory leak in many codec drivers 2008-08-25 13:49:52 +02:00
wm8750.h ALSA: asoc: codecs - merge structs snd_soc_codec_dai and snd_soc_cpu_dai. 2008-07-10 09:32:39 +02:00
wm8753.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6 2008-08-25 11:24:51 -07:00
wm8753.h ALSA: asoc: codecs - merge structs snd_soc_codec_dai and snd_soc_cpu_dai. 2008-07-10 09:32:39 +02:00
wm8990.c ALSA: ASoC: Fix double free and memory leak in many codec drivers 2008-08-25 13:49:52 +02:00
wm8990.h ALSA: wm8990: Implement speaker volume PGA 2008-08-15 17:43:47 +02:00
wm9712.c removed unused #include <linux/version.h>'s 2008-08-23 12:14:12 -07:00
wm9712.h ALSA: asoc: codecs - merge structs snd_soc_codec_dai and snd_soc_cpu_dai. 2008-07-10 09:32:39 +02:00
wm9713.c ALSA: asoc: codecs - merge structs snd_soc_codec_dai and snd_soc_cpu_dai. 2008-07-10 09:32:39 +02:00
wm9713.h ALSA: asoc: codecs - merge structs snd_soc_codec_dai and snd_soc_cpu_dai. 2008-07-10 09:32:39 +02:00