[GIT PULL] Thermal control fixes for v6.12-rc3

From: Rafael J. Wysocki
Date: Fri Oct 11 2024 - 11:38:30 EST


Hi Linus,

Please pull from the tag

git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \
thermal-6.12-rc3

with top-most commit 827a07525c099f54d3b15110408824541ec66b3c

thermal: core: Free tzp copy along with the thermal zone

on top of commit 9852d85ec9d492ebef56dc5f229416c925758edc

Linux 6.12-rc1

to receive thermal control fixes for 6.12-rc3.

These address possible use-after-free scenarios during the processing of
thermal netlink commands and during thermal zone removal.

Thanks!


---------------

Rafael J. Wysocki (2):
thermal: core: Reference count the zone in thermal_zone_get_by_id()
thermal: core: Free tzp copy along with the thermal zone

---------------

drivers/thermal/thermal_core.c | 5 ++---
drivers/thermal/thermal_core.h | 3 +++
drivers/thermal/thermal_netlink.c | 9 +++------
3 files changed, 8 insertions(+), 9 deletions(-)