kernel_optimize_test/sound/soc
Jean Delvare 3051e41ab7 ALSA: ASoC: Fix double free and memory leak in many codec drivers
Many SoC audio codec drivers have improper freeing of memory in error
paths.

* codec is allocated in the platform device probe function, but is not
  freed there in case of error. Instead it is freed in the i2c device
  probe function's error path. However the success or failure of both
  functions is not linked, so this could result in a double free (if
  the platform device is successfully probed, the i2c device probing
  fails and then the platform driver is unregistered.)

* codec->private_data is allocated in many platform device probe
  functions but not freed in their error paths.

This patch hopefully solves all these problems.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2008-08-25 13:49:52 +02:00
..
at32 [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
at91 [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
au1x ALSA: Au1xpsc: psc not disabled when TX is idle 2008-07-15 15:08:28 +02:00
codecs ALSA: ASoC: Fix double free and memory leak in many codec drivers 2008-08-25 13:49:52 +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 [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
pxa ALSA: spitz: MONO -> MONO1 2008-08-12 12:29:41 +02:00
s3c24xx [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
sh ALSA: asoc: sh - merge structs snd_soc_codec_dai and snd_soc_cpu_dai. 2008-07-10 09:32:46 +02:00
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 ALSA: asoc: core - add Digital Audio Interface (DAI) control functions. 2008-07-10 09:32:50 +02:00
soc-dapm.c ALSA: ASoC: Export dapm_reg_event() fully 2008-07-29 16:00:33 +02:00