drivers/iio/adc/xilinx-ams.c:917:1-23: WARNING: Function "for_each_child_of_node" should have of_node_put() before return around line 923.
Subsystems (3)
kernel test robot
build botCC: kbuild-all(a)lists.01.org
BCC: lkp(a)intel.com
CC: linux-arm-kernel(a)lists.infradead.org
TO: Rajnikant Bhojani <[email protected]>
CC: Michal Simek <[email protected]>
CC: Hyun Kwon <[email protected]>
CC: Shubhrajyoti Datta <[email protected]>
CC: "Jean-Francois Dagenais" <[email protected]>
CC: Olivier Dugas <[email protected]>
CC: Manish Narani <[email protected]>
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.15_LTS head: 1870e0fa79a9d58c6748c34550f3ccea0b515933 commit: d073b83d3f8f3ba83c59f7502371b1cf9eb35e92 [541/1029] iio: adc: Add Xilinx AMS driver
:::::: branch date: 35 hours ago
:::::: commit date: 8 weeks ago
config: sparc64-randconfig-c023-20220324 (https://download.01.org/0day-ci/archive/20220326/202203260819.6o9L0nMg-lkp(a)intel.com/config)
compiler: sparc64-linux-gcc (GCC) 11.2.0
If you fix the issue, kindly add following tag as appropriate
cocci warnings: (new ones prefixed by >>)
>> drivers/iio/adc/xilinx-ams.c:917:1-23: WARNING: Function "for_each_child_of_node" should have of_node_put() before return around line 923.
Please review and possibly fold the followup patch.
Signature · 2 lines
0-DAY CI Kernel Test Service https://01.org/lkp
kernel test robot
build bot[PATCH] iio: adc: fix for_each_child.cocci warnings
CC: kbuild-all(a)lists.01.org BCC: lkp(a)intel.com CC: linux-arm-kernel(a)lists.infradead.org TO: Rajnikant Bhojani <[email protected]> CC: Michal Simek <[email protected]> CC: Hyun Kwon…
CC: kbuild-all(a)lists.01.org
BCC: lkp(a)intel.com
CC: linux-arm-kernel(a)lists.infradead.org
TO: Rajnikant Bhojani <[email protected]>
CC: Michal Simek <[email protected]>
CC: Hyun Kwon <[email protected]>
CC: Shubhrajyoti Datta <[email protected]>
CC: "Jean-Francois Dagenais" <[email protected]>
CC: Olivier Dugas <[email protected]>
CC: Manish Narani <[email protected]>
CC: Jonathan Cameron <[email protected]>
CC: "Lars-Peter Clausen" <[email protected]>
CC: linux-iio(a)vger.kernel.org
CC: linux-arm-kernel(a)lists.infradead.org
CC: linux-kernel(a)vger.kernel.org
From: kernel test robot <[email protected]>
drivers/iio/adc/xilinx-ams.c:917:1-23: WARNING: Function "for_each_child_of_node" should have of_node_put() before return around line 923.
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
---
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.15_LTS head: 1870e0fa79a9d58c6748c34550f3ccea0b515933 commit: d073b83d3f8f3ba83c59f7502371b1cf9eb35e92 [541/1029] iio: adc: Add Xilinx AMS driver
:::::: branch date: 35 hours ago
:::::: commit date: 8 weeks ago
Please take the patch only if it's a positive warning. Thanks!
drivers/iio/adc/xilinx-ams.c | 1 + 1 file changed, 1 insertion(+)
drivers/iio/adc/xilinx-ams.c +1 -0
@@ -920,6 +920,7 @@ static int ams_parse_dt(struct iio_dev * ams_channels + num_channels);if (ret <0 ) {kfree (ams_channels); +of_node_put (child_node);return ret; }