[thermal:thermal/next 28/36] drivers/thermal/thermal_of.c:689:1-23: WARNING: Function "for_each_child_of_node" should have of_node_put() before goto around lines 692. (fwd)

From: Julia Lawall
Date: Sun Jul 31 2022 - 13:36:20 EST


I didn't receive a code snippet with this message, but it may be worth
checkin whether there is a missing of_node_put.

julia

---------- Forwarded message ----------
Date: Sun, 31 Jul 2022 10:35:03 +0800
From: kernel test robot <lkp@xxxxxxxxx>
To: kbuild@xxxxxxxxxxxx
Cc: lkp@xxxxxxxxx, Julia Lawall <julia.lawall@xxxxxxx>
Subject: [thermal:thermal/next 28/36] drivers/thermal/thermal_of.c:689:1-23:
WARNING: Function "for_each_child_of_node" should have of_node_put() before
goto around lines 692.

CC: kbuild-all@xxxxxxxxxxxx
BCC: lkp@xxxxxxxxx
CC: linux-kernel@xxxxxxxxxxxxxxx
TO: Daniel Lezcano <daniel.lezcano@xxxxxxxxxx>

tree: git://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux.git thermal/next
head: d0c75fa2c17f082b32a5f26ff40bf378b12952de
commit: a3193edcbdf9a8ae73b6e1f2da96e920582c1849 [28/36] thermal/of: Replace device node match with device node search
:::::: branch date: 2 days ago
:::::: commit date: 2 days ago
config: nios2-randconfig-c033-20220729 (https://download.01.org/0day-ci/archive/20220731/202207311043.WDsouQI6-lkp@xxxxxxxxx/config)
compiler: nios2-linux-gcc (GCC) 12.1.0

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>
Reported-by: Julia Lawall <julia.lawall@xxxxxxx>

cocci warnings: (new ones prefixed by >>)
>> drivers/thermal/thermal_of.c:689:1-23: WARNING: Function "for_each_child_of_node" should have of_node_put() before goto around lines 692.

--
0-DAY CI Kernel Test Service
https://01.org/lkp