[GIT PULL] Thermal control fixes for v6.10-rc8
From: Rafael J. Wysocki
Date: Wed Jul 10 2024 - 07:04:12 EST
Hi Linus,
Please pull from the tag
git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \
thermal-6.10-rc8
with top-most commit 94eacc1c583dd2ba51a2158fb13285f5dc42714b
thermal: core: Fix list sorting in __thermal_zone_device_update()
on top of commit 22a40d14b572deb80c0648557f4bd502d7e83826
Linux 6.10-rc6
to receive thermal control fixes for final 6.10.
These fix a possible NULL pointer dereference in a thermal governor, fix
up the handling of thermal zones enabled before their temperature can be
determined and fix list sorting during thermal zone temperature updates.
Specifics:
- Prevent the Power Allocator thermal governor from dereferencing a NULL
pointer if it is bound to a tripless thermal zone (Nícolas Prado).
- Prevent thermal zones enabled too early from staying effectively
dormant forever because their temperature cannot be determined
initially (Rafael Wysocki).
- Fix list sorting during thermal zone temperature updates to ensure
the proper ordering of trip crossing notifications (Rafael Wysocki).
Thanks!
---------------
Nícolas F. R. A. Prado (1):
thermal: gov_power_allocator: Return early in manage if trip_max is NULL
Rafael J. Wysocki (2):
thermal: core: Call monitor_thermal_zone() if zone temperature is invalid
thermal: core: Fix list sorting in __thermal_zone_device_update()
---------------
drivers/thermal/gov_power_allocator.c | 3 +++
drivers/thermal/thermal_core.c | 15 ++++++++-------
drivers/thermal/thermal_core.h | 6 ++++++
3 files changed, 17 insertions(+), 7 deletions(-)