linux/drivers/thermal
Rafael J. Wysocki ff8da20b6f Revert "thermal/drivers/hwmon: Cleanup coding style a bit"
Revert commit 030a48b0f6 ("thermal/drivers/hwmon: Cleanup coding style
a bit") that introduced a use-after-free into the error path of
thermal_add_hwmon_sysfs() by removing a valid check from it.

Link: https://lore.kernel.org/linux-hwmon/20260803183915.4ED7D1F000E9@smtp.kernel.org/
Cc: All applicable <stable@vger.kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Link: https://patch.msgid.link/5123895.31r3eYUQgx@rafael.j.wysocki
2026-08-05 13:25:55 +02:00
..
broadcom thermal/drivers/brcmstb_thermal: Use max to simplify brcmstb_get_temp 2026-04-02 19:23:54 +02:00
intel Thermal control fixes for 7.2-rc1 2026-06-26 13:24:59 -07:00
mediatek thermal/drivers/mediatek/lvts_thermal: Add mt7987 support 2026-01-20 20:55:03 +01:00
qcom thermal/drivers/qcom/tsens: Disable wakeup interrupt setup on automotive targets 2026-06-03 09:13:04 +02:00
renesas Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
samsung thermal/drivers/samsung: Enable TMU by default 2026-06-03 09:12:37 +02:00
spacemit thermal/drivers/spacemit/k1: Add thermal sensor support 2026-06-03 09:12:31 +02:00
st thermal/drivers/stm32: Use predefined HZ_PER_MHZ instead of a custom one 2026-01-21 16:29:23 +01:00
tegra thermal/of: Rename the devm_thermal_of_cooling_device_register() function 2026-06-03 09:12:53 +02:00
testing thermal: testing: zone: Flush work items during cleanup 2026-06-24 14:59:25 +02:00
ti-soc-thermal
airoha_thermal.c
amlogic_thermal.c thermal/drivers/amlogic: Add support for secure monitor calibration readout 2026-06-03 09:12:17 +02:00
armada_thermal.c thermal: Constify struct thermal_zone_device_ops 2025-07-15 15:26:04 +02:00
cpufreq_cooling.c thermal/of: Add cooling device ID support 2026-06-03 09:12:55 +02:00
cpuidle_cooling.c thermal/of: Add cooling device ID support 2026-06-03 09:12:55 +02:00
da9062-thermal.c thermal: Constify struct thermal_zone_device_ops 2025-07-15 15:26:04 +02:00
db8500_thermal.c
devfreq_cooling.c thermal/of: Add cooling device ID support 2026-06-03 09:12:55 +02:00
dove_thermal.c thermal: Constify struct thermal_zone_device_ops 2025-07-15 15:26:04 +02:00
gov_bang_bang.c
gov_fair_share.c
gov_power_allocator.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
gov_step_wise.c thermal: gov_step_wise: Allow cooling level to be reduced earlier 2025-09-04 21:28:01 +02:00
gov_user_space.c
hisi_thermal.c
imx_sc_thermal.c
imx_thermal.c thermal/drivers/imx: Do not split quoted string across lines 2026-06-03 09:12:28 +02:00
imx8mm_thermal.c
imx91_thermal.c thermal/drivers/imx91: Add hwmon support 2026-03-10 00:12:19 +01:00
k3_bandgap.c
k3_j72xx_bandgap.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
Kconfig thermal/drivers/spacemit/k1: Add thermal sensor support 2026-06-03 09:12:31 +02:00
khadas_mcu_fan.c thermal/of: Rename the devm_thermal_of_cooling_device_register() function 2026-06-03 09:12:53 +02:00
kirkwood_thermal.c thermal: Constify struct thermal_zone_device_ops 2025-07-15 15:26:04 +02:00
loongson2_thermal.c Replace <linux/mod_devicetable.h> by more specific <linux/device-id/*.h> (c files) 2026-07-03 07:38:17 +02:00
Makefile thermal/drivers/spacemit/k1: Add thermal sensor support 2026-06-03 09:12:31 +02:00
max77620_thermal.c
pcie_cooling.c
qoriq_thermal.c thermal/driver/qoriq: Workaround unexpected temperature readings from tmu 2026-06-03 09:12:36 +02:00
rockchip_thermal.c thermal/drivers/rockchip: Shut up GRF warning 2025-09-25 22:11:00 +02:00
spear_thermal.c thermal/drivers/spear: Fix error condition for reading st,thermal-flags 2026-03-27 11:26:43 +01:00
sprd_thermal.c thermal/drivers/sprd: Use min instead of clamp in sprd_thm_temp_to_rawdata 2026-03-10 11:54:12 +01:00
sun8i_thermal.c
thermal_core.c thermal/of: Move cooling device OF helpers out of thermal core 2026-06-03 09:12:50 +02:00
thermal_core.h thermal/of: Move cooling device OF helpers out of thermal core 2026-06-03 09:12:50 +02:00
thermal_debugfs.c Convert 'alloc_flex' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
thermal_debugfs.h
thermal_helpers.c
thermal_hwmon.c Revert "thermal/drivers/hwmon: Cleanup coding style a bit" 2026-08-05 13:25:55 +02:00
thermal_hwmon.h
thermal_mmio.c
thermal_netlink.c
thermal_netlink.h
thermal_of.c thermal/of: Support cooling device ID in cooling-spec 2026-06-03 09:12:57 +02:00
thermal_sysfs.c thermal: sysfs: Replace sscanf() with kstrtoul() 2026-06-08 15:57:05 +02:00
thermal_thresholds.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
thermal_thresholds.h
thermal_trace_ipa.h
thermal_trace.h
thermal_trip.c
thermal-generic-adc.c thermal/drivers/thermal-generic-adc: Add temperature sensor channel 2025-09-25 22:11:00 +02:00
uniphier_thermal.c