linux-stable/sound/soc/ep93xx
Julia Lawall 5006b31328 sound/soc/ep93xx/ep93xx-i2s.c: add missing kfree
Introduce a new label that includes kfree and jump to that one.

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: Alexander Sverdlin <subaparts@yandex.ru>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2011-08-22 23:28:42 +01:00
..
edb93xx.c ASoC: EDB93xx: Manage I2S rates according to datasheet for CS4271 CODEC. 2011-03-09 13:08:32 +00:00
ep93xx-ac97.c ASoC: ep93xx: convert to use the DMA engine API 2011-06-08 15:45:59 -06:00
ep93xx-i2s.c sound/soc/ep93xx/ep93xx-i2s.c: add missing kfree 2011-08-22 23:28:42 +01:00
ep93xx-pcm.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2011-07-25 13:56:39 -07:00
ep93xx-pcm.h ASoC: multi-component - ASoC Multi-Component Support 2010-08-12 14:00:00 +01:00
Kconfig ASoC: EDB93xx machine sound driver with CS4271 2011-01-24 12:05:15 +00:00
Makefile ASoC: EDB93xx machine sound driver with CS4271 2011-01-24 12:05:15 +00:00
simone.c ASoC: simone: fix resource leak in simone_init error path 2010-11-25 11:09:30 +00:00
snappercl15.c Change Ryan Mallon's email address across the kernel 2011-06-16 11:22:05 +02:00