Skip to contentSkip to conversation

drivers/thermal/thermal_of.c:1297:1-23: WARNING: Function "for_each_child_of_node" should have of_node_put() before break around line 1300. (fwd)

PATCH New Julia Lawall 1 participant 1 message Aug 29, 2022 Memory management

lore
Share & tools
lore
#0 lore raw

PATCH 1350/3682 drivers/thermal/thermal_of.c:1297:1-23: WARNING: Function "for_each_child_of_node" should have of_node_put() before break around line 1300. (fwd)

Hello,

I don't seem to have receivde any patch or code extract for this, but perhaps it is worth checking in the current version of the code.

julia

---------- Forwarded message ----------
Date: Sat, 27 Aug 2022 06:44:43 +0800
From: kernel test robot <[email protected]>
To: kbuild(a)lists.01.org
Cc: lkp(a)intel.com, Julia Lawall <[email protected]>
Subject: [linux-next:master 1350/3682] drivers/thermal/thermal_of.c:1297:1-23:
WARNING: Function "for_each_child_of_node" should have of_node_put() before break around line 1300.

BCC: lkp(a)intel.com
CC: kbuild-all(a)lists.01.org
CC: Linux Memory Management List <[email protected]>
TO: Daniel Lezcano <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   8d0c42c9e80791e8baba2932d2cbd2dcead50d47
commit: 3fd6d6e2b4e80fe45bfd1c8f01dff7d30a0f9b53 [1350/3682] thermal/of: Rework the thermal device tree initialization

:::::: branch date: 15 hours ago
:::::: commit date: 9 days ago
config: mips-randconfig-c003-20220827 (https://download.01.org/0day-ci/archive/20220827/202208270622.0O59UTN1-lkp(a)intel.com/config)
compiler: mips-linux-gcc (GCC) 12.1.0

If you fix the issue, kindly add following tag where applicable

cocci warnings: (new ones prefixed by >>)

Quoted 1 line
Quoted 1 line

drivers/thermal/thermal_of.c:1297:1-23: WARNING: Function "for_each_child_of_node" should have of_node_put() before break around line 1300.

drivers/thermal/thermal_of.c:668:1-23: WARNING: Function "for_each_child_of_node" should have of_node_put() before goto around lines 671.

Signature · 2 lines
0-DAY CI Kernel Test Service
https://01.org/lkp