devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] clk: fix for_each_child.cocci warnings
@ 2021-04-07 19:02 Julia Lawall
  2021-04-08  0:31 ` Stephen Boyd
  0 siblings, 1 reply; 3+ messages in thread
From: Julia Lawall @ 2021-04-07 19:02 UTC (permalink / raw)
  To: Liam Beguin, mturquette, sboyd
  Cc: linux-clk, linux-kernel, devicetree, robh+dt, kbuild-all

From: kernel test robot <lkp@intel.com>

For_each_child_of_node should have of_node_put() before goto.

Generated by: scripts/coccinelle/iterators/for_each_child.cocci

CC: Liam Beguin <lvb@xiphos.com>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
Signed-off-by: Julia Lawall <julia.lawall@inria.fr>
---

url:    https://github.com/0day-ci/linux/commits/Liam-Beguin/add-support-for-the-lmk04832/20210407-085408
base:   f40ddce88593482919761f74910f42f4b84c004b
:::::: branch date: 9 hours ago
:::::: commit date: 9 hours ago

 clk-lmk04832.c |    1 +
 1 file changed, 1 insertion(+)

--- a/drivers/clk/clk-lmk04832.c
+++ b/drivers/clk/clk-lmk04832.c
@@ -1159,6 +1159,7 @@ static int lmk04832_probe(struct spi_dev
 		if (ret) {
 			dev_err(lmk->dev, "missing reg property in child: %s\n",
 				child->full_name);
+			of_node_put(child);
 			goto err_disable_oscin;
 		}


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-04-08  1:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-07 19:02 [PATCH] clk: fix for_each_child.cocci warnings Julia Lawall
2021-04-08  0:31 ` Stephen Boyd
2021-04-08  1:50   ` Liam Beguin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).