From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: [PATCH] clk: fix for_each_child.cocci warnings
Date: Wed, 07 Apr 2021 17:51:00 +0800 [thread overview]
Message-ID: <20210407095100.GA135135@17ea4f8b4ec6> (raw)
In-Reply-To: <202104071709.CGZ3wbOM-lkp@intel.com>
[-- Attachment #1: Type: text/plain, Size: 1589 bytes --]
CC: kbuild-all(a)lists.01.org
In-Reply-To: <20210407005330.2890430-2-liambeguin@gmail.com>
References: <20210407005330.2890430-2-liambeguin@gmail.com>
TO: Liam Beguin <liambeguin@gmail.com>
TO: liambeguin(a)gmail.com
TO: mturquette(a)baylibre.com
TO: sboyd(a)kernel.org
CC: linux-clk(a)vger.kernel.org
CC: linux-kernel(a)vger.kernel.org
CC: devicetree(a)vger.kernel.org
CC: robh+dt(a)kernel.org
From: kernel test robot <lkp@intel.com>
drivers/clk/clk-lmk04832.c:1155:1-23: WARNING: Function "for_each_child_of_node" should have of_node_put() before goto around lines 1162.
Semantic patch information:
False positives can be due to function calls within the for_each
loop that may encapsulate an of_node_put.
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>
---
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
Please take the patch only if it's a positive warning. Thanks!
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;
}
next prev parent reply other threads:[~2021-04-07 9:51 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-07 9:50 [PATCH v4 1/3] clk: add support for the lmk04832 kernel test robot
2021-04-07 9:51 ` kernel test robot [this message]
2021-04-07 9:51 ` [PATCH] clk: fix semicolon.cocci warnings kernel test robot
2021-04-07 19:02 [PATCH] clk: fix for_each_child.cocci warnings Julia Lawall
2021-04-07 19:02 ` Julia Lawall
2021-04-08 0:31 ` Stephen Boyd
2021-04-08 0:31 ` Stephen Boyd
2021-04-08 1:50 ` Liam Beguin
2021-04-08 1:50 ` Liam Beguin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210407095100.GA135135@17ea4f8b4ec6 \
--to=lkp@intel.com \
--cc=kbuild@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.