Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: rsnd: call of_node_put() when break

We need to call of_node_put() when break from
for_each_child_of_node(). This patch add missing
of_node_put().

Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Julia Lawall <julia.lawall@inria.fr>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87bkfh9g68.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Kuninori Morimoto and committed by
Mark Brown
1a5ca2aa a932f45a

+2
+2
sound/soc/sh/rcar/core.c
··· 1293 1293 i++; 1294 1294 if (i >= RSND_MAX_COMPONENT) { 1295 1295 dev_info(dev, "reach to max component\n"); 1296 + of_node_put(node); 1296 1297 break; 1297 1298 } 1298 1299 } ··· 1313 1312 i++; 1314 1313 if (i >= RSND_MAX_COMPONENT) { 1315 1314 dev_info(dev, "reach to max component\n"); 1315 + of_node_put(node); 1316 1316 break; 1317 1317 } 1318 1318 }