]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
sound/soc/ep93xx/ep93xx-i2s.c: add missing kfree
authorJulia Lawall <julia@diku.dk>
Sat, 20 Aug 2011 06:12:39 +0000 (08:12 +0200)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 22 Aug 2011 22:28:42 +0000 (23:28 +0100)
commit5006b313283c56cfda498513b7091692bcd74433
treecca23211ee397c25bbec4f2da1aced3ba0862ad5
parent96101bd0bf7974686f6875c065a7a9a83cd2107a
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>
sound/soc/ep93xx/ep93xx-i2s.c