diff options
author | 2025-01-10 14:46:49 -0800 | |
---|---|---|
committer | 2025-01-10 14:46:49 -0800 | |
commit | da13af839228cc3ec51d9caabea9c0b411dc464a (patch) | |
tree | 3f8aeb466ae28e85809d5191f69f934d75c33930 | |
parent | Merge tag 'acpi-6.13-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm (diff) | |
parent | thermal: of: fix OF node leak in of_thermal_zone_find() (diff) | |
download | wireguard-linux-da13af839228cc3ec51d9caabea9c0b411dc464a.tar.xz wireguard-linux-da13af839228cc3ec51d9caabea9c0b411dc464a.zip |
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()
-rw-r--r-- | drivers/thermal/thermal_of.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/thermal/thermal_of.c b/drivers/thermal/thermal_of.c index fab11b98ca49..5ab4ce4daaeb 100644 --- a/drivers/thermal/thermal_of.c +++ b/drivers/thermal/thermal_of.c @@ -160,6 +160,7 @@ static struct device_node *of_thermal_zone_find(struct device_node *sensor, int return ERR_PTR(ret); } + of_node_put(sensor_specs.np); if ((sensor == sensor_specs.np) && id == (sensor_specs.args_count ? sensor_specs.args[0] : 0)) { pr_debug("sensor %pOFn id=%d belongs to %pOFn\n", sensor, id, child); |