[GIT PULL] Thermal control updates for v6.15-rc1

From: Rafael J. Wysocki
Date: Mon Mar 24 2025 - 12:34:18 EST


Hi Linus,

Please pull from the tag

git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \
thermal-6.15-rc1

with top-most commit c3b659b74541f4564f9f5a39f65e625c47e77e21

Merge branches 'thermal-core' and 'thermal-misc'

on top of commit 80e54e84911a923c40d7bee33a34c1b4be148d7a

Linux 6.14-rc6

to receive thermal control updates for 6.15-rc1.

These include one thermal core fix for an issue leading to a NULL
pointer dereference, a similar fix for the int340x thermal driver (even
though the issue may not actually occur in practice in this particular
case), and a bunch of cleanups, mostly related to replacing kzalloc()
with kcalloc() where applicable:

- Delay exposing thermal zone sysfs interface to prevent user space
from accessing thermal zones that have not been completely
initialized yet (Lucas De Marchi).

- Check a pointer against NULL early in int3402_thermal_probe() to
avoid a potential NULL pointer dereference (Chenyuan Yang).

- Use kcalloc() instead of kzalloc() in some places in the thermal
control subsystem (Lukasz Luba, Ethan Carter Edwards).

- Fix a spelling mistake in a comment in the thermal core (Colin Ian
King).

- Clean up variable initialization in int340x_thermal_zone_add()
(Christophe JAILLET).

Thanks!


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

Chenyuan Yang (1):
thermal: int340x: Add NULL check for adev

Christophe JAILLET (1):
thermal: intel: Clean up zone_trips[] initialization in
int340x_thermal_zone_add()

Colin Ian King (1):
thermal: core: Fix spelling mistake "Occurences" -> "Occurrences"

Ethan Carter Edwards (1):
thermal/debugfs: replace kzalloc() with kcalloc() in
thermal_debug_tz_add()

Lucas De Marchi (1):
thermal: core: Delay exposing sysfs interface

Lukasz Luba (4):
thermal/of: Use kcalloc() instead of kzalloc() with multiplication
thermal: k3_j72xx_bandgap: Use kcalloc() instead of kzalloc()
thermal: int340x: Use kcalloc() instead of kzalloc() with multiplication
thermal: hisi: Use kcalloc() instead of kzalloc() with multiplication

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

drivers/thermal/hisi_thermal.c | 4 ++--
.../thermal/intel/int340x_thermal/int3402_thermal.c | 3 +++
.../intel/int340x_thermal/int340x_thermal_zone.c | 6 +++---
drivers/thermal/k3_j72xx_bandgap.c | 4 ++--
drivers/thermal/thermal_core.c | 20 ++++++++++----------
drivers/thermal/thermal_debugfs.c | 4 ++--
drivers/thermal/thermal_of.c | 2 +-
7 files changed, 23 insertions(+), 20 deletions(-)