Skip to content

Commit da13af8

Browse files
committed
Merge tag 'thermal-6.13-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull thermal control fix from Rafael Wysocki: "Fix an OF node leak in the code parsing thermal zone DT properties (Joe Hattori)" * tag 'thermal-6.13-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm: thermal: of: fix OF node leak in of_thermal_zone_find()
2 parents 475c9f5 + 9164e09 commit da13af8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/thermal/thermal_of.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ static struct device_node *of_thermal_zone_find(struct device_node *sensor, int
160160
return ERR_PTR(ret);
161161
}
162162

163+
of_node_put(sensor_specs.np);
163164
if ((sensor == sensor_specs.np) && id == (sensor_specs.args_count ?
164165
sensor_specs.args[0] : 0)) {
165166
pr_debug("sensor %pOFn id=%d belongs to %pOFn\n", sensor, id, child);

0 commit comments

Comments
 (0)