linux/sound/soc/sh/rcar
Julia Lawall 53ba2aa314 ASoC: rsnd: add missing of_node_put
for_each_child_of_node performs an of_node_get on each iteration, so a
jump out of the loop requires an of_node_put.

The semantic patch that fixes this problem is as follows
(http://coccinelle.lip6.fr):

// <smpl>
@@
local idexpression n;
expression e,e1;
identifier l;
@@

 for_each_child_of_node(e1,n) {
   ...
(
   of_node_put(n);
|
   e = n
|
+  of_node_put(n);
?  goto l;
)
   ...
 }
...
l: ... when != n
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Mark Brown <broonie@kernel.org>
2017-07-17 15:39:51 +01:00
..
adg.c ASoC: rsnd: add rsnd_adg_clk_query() 2017-06-15 18:18:02 +01:00
cmd.c ASoC: rsnd: make arrays path and cmd_case static const 2017-06-30 12:45:36 +01:00
core.c ASoC: rsnd: constify dev_pm_ops structures. 2017-06-30 12:17:32 +01:00
ctu.c ASoC: rsnd: add missing of_node_put 2017-07-17 15:39:51 +01:00
dma.c ASoC: rsnd: cleanup pointer related code 2017-06-07 20:30:38 +01:00
dvc.c ASoC: rsnd: add missing of_node_put 2017-07-17 15:39:51 +01:00
gen.c Merge branch 'fix/rcar' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-rcar 2017-06-07 20:30:32 +01:00
Makefile ASoC: rsrc-card: rename rsrc-card to simple-scu-card phase3 2016-08-24 11:19:16 +01:00
mix.c ASoC: rsnd: add missing of_node_put 2017-07-17 15:39:51 +01:00
rsnd.h ASoC: rsnd: fixup unsigned expression compared with zero: main_rate 2017-06-21 12:14:04 +01:00
src.c ASoC: rsnd: add missing of_node_put 2017-07-17 15:39:51 +01:00
ssi.c ASoC: rsnd: add missing of_node_put 2017-07-17 15:39:51 +01:00
ssiu.c Merge branch 'fix/rcar' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-rcar 2017-06-07 20:30:32 +01:00