linux/sound/soc/fsl
Julia Lawall 178b279b64 sound/soc/fsl/p1022_ds.c: add missing of_node_put
dma_channel_np has been accessed at this point, so decrease its reference
count before leaving the function.

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 != of_node_put(x)
               when != x = E3
               when != E3 = x
*  return ...;
 }
... when != x = E2
    when != I(...,x,...) S
if (...) { ... when != x = E4
 of_node_put(x); ... return ...; }
)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2011-08-22 23:29:16 +01:00
..
efika-audio-fabric.c
fsl_dma.c sound/soc/fsl/fsl_dma.c: add missing of_node_put 2011-08-22 23:26:33 +01:00
fsl_dma.h
fsl_ssi.c trivial: don't touch fsi_ssl.c with ioremap fixes 2011-06-14 10:40:40 +02:00
fsl_ssi.h
Kconfig
Makefile
mpc5200_dma.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
mpc5200_dma.h
mpc5200_psc_ac97.c
mpc5200_psc_ac97.h
mpc5200_psc_i2s.c
mpc8610_hpcd.c ASoC: p1022ds: fix incorrect referencing of device tree properties 2011-06-09 12:02:08 +01:00
p1022_ds.c sound/soc/fsl/p1022_ds.c: add missing of_node_put 2011-08-22 23:29:16 +01:00
pcm030-audio-fabric.c