Content-Type: multipart/mixed; boundary="===============3483210494148613763==" MIME-Version: 1.0 From: Liam Beguin To: kbuild-all@lists.01.org Subject: Re: [PATCH] clk: fix for_each_child.cocci warnings Date: Wed, 07 Apr 2021 21:50:15 -0400 Message-ID: In-Reply-To: <161784187378.3790633.2593540922159647609@swboyd.mtv.corp.google.com> List-Id: --===============3483210494148613763== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Stephen, On Wed Apr 7, 2021 at 8:31 PM EDT, Stephen Boyd wrote: > Quoting Julia Lawall (2021-04-07 12:02:32) > > From: kernel test robot > > = > > For_each_child_of_node should have of_node_put() before goto. > > = > > Generated by: scripts/coccinelle/iterators/for_each_child.cocci > > = > > CC: Liam Beguin > > Reported-by: kernel test robot > > Signed-off-by: kernel test robot > > Signed-off-by: Julia Lawall > > --- > > Is this a fix for a patch on the list? > This is a fix for a patch[1] I sent yesterday. I'll apply and resend. Thanks, Liam [1] https://patchwork.kernel.org/project/linux-clk/patch/20210407005330.289= 0430-2-liambeguin(a)gmail.com/ > > = > > url: https://github.com/0day-ci/linux/commits/Liam-Beguin/add-suppor= t-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 chil= d: %s\n", > > child->full_name); > > + of_node_put(child); > > goto err_disable_oscin; > > } > > --===============3483210494148613763==--