linux-stable/sound/soc
Julia Lawall 0bb98ba2b0 sound/soc/mxs/mxs-saif.c: add missing kfree
Move the test on pdev->id before the kzalloc to avoid requiring kfree when
the test fails.  This fix was suggested by Wolfram Sang.

A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
@@
identifier x;
expression E1!=0,E2,E3,E4;
statement S;
iterator I;
@@

(
if (...) { ... when != kfree(x)
               when != x = E3
               when != E3 = x
*  return ...;
 }
... when != x = E2
    when != I(...,x,...) S
if (...) { ... when != x = E4
 kfree(x); ... return ...; }
)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Acked-by: Dong Aisheng <b29396@freescale.com>
Reviewed-by: Wolfram Sang <w.sang@pengutronix.de>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2011-08-22 23:34:37 +01:00
..
atmel sound/atmel_ssc_dai: add a missing space to an error message 2011-06-10 10:55:20 +01:00
au1x ASoC: Remove unreachable code in au1xac97c_drvprobe and au1xi2s_drvprobe 2011-08-17 16:24:16 +09:00
blackfin ASoC: Blackfin: ADAU1373 eval board support 2011-08-17 00:53:54 +09:00
codecs ASoC: Convert WM8523 to table based control and DAPM initialization 2011-08-22 23:23:17 +01:00
davinci ASoC: davinci: add missing break statement 2011-07-20 20:51:35 +01:00
ep93xx sound/soc/ep93xx/ep93xx-i2s.c: add missing kfree 2011-08-22 23:28:42 +01:00
fsl Merge branch 'for-3.1' into for-3.2 2011-08-22 23:33:01 +01:00
imx Merge branch 'next/fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/linux-arm-soc 2011-07-25 11:53:35 -07:00
jz4740 ASoC: core - Optimise and refactor pcm_new() to pass only rtd 2011-06-07 18:38:27 +01:00
kirkwood sound/soc/kirkwood/kirkwood-i2s.c: add missing kfree 2011-08-22 23:26:56 +01:00
mid-x86 ASoC: core - Optimise and refactor pcm_new() to pass only rtd 2011-06-07 18:38:27 +01:00
mxs sound/soc/mxs/mxs-saif.c: add missing kfree 2011-08-22 23:34:37 +01:00
nuc900 ASoC: nuc900-pcm: remove unused variable 'dai' 2011-08-15 22:52:04 +09:00
omap ASoC: omap: Fix build errors in ams-delta 2011-08-19 01:19:45 +09:00
pxa ASoC: Remove redundant -codec from WM8750 2011-08-14 19:19:43 +09:00
s6000 ASoC: s6000-pcm: remove unused variable 'dai' 2011-08-15 22:51:48 +09:00
samsung Merge branch 'for-3.1' into for-3.2 2011-08-22 14:00:08 +01:00
sh Merge branch 'for-3.0' into for-3.1 2011-07-09 19:06:33 +09:00
tegra ASoC: Tegra: wm8903 machine driver: Allow re-insertion of module 2011-08-09 09:42:11 +09:00
txx9 ASoC: Fix txx9aclc.c build 2011-07-29 07:53:08 +02:00
Kconfig Merge branch 'regmap-asoc' into for-3.2 2011-08-08 15:00:13 +09:00
Makefile ASoC: mxs: add asoc configuration files 2011-07-28 11:47:41 +01:00
soc-cache.c ASoC: soc-cache: Remove unneeded codec_drv pointer variable in snd_soc_lzo_get_blksize 2011-08-15 22:52:03 +09:00
soc-core.c Merge branch 'for-3.1' into for-3.2 2011-08-22 23:33:01 +01:00
soc-dapm.c ASoC: DAPM: Allow multiple mixer sources to be routed via the same switch 2011-08-16 08:25:08 +09:00
soc-io.c ASoC: Add spi hw read function for 16 addr 8 data mode for ad193x fix 2011-08-15 22:38:14 +09:00
soc-jack.c ASoC: soc-jack: Fix checking return value of request_any_context_irq 2011-08-15 22:28:46 +09:00
soc-pcm.c Merge branch 'for-3.1' into for-3.2 2011-08-17 16:34:05 +09:00
soc-utils.c ASoC: Work around allmodconfig failure 2011-04-28 12:09:06 +01:00