linux/drivers/thermal/intel
Aravind Anilraj 8aa807a89d thermal: intel: int340x: Check return value of ptc_create_groups()
proc_thermal_ptc_add() ignores the return value of ptc_create_groups()
causing the driver to silenty continue even if sysfs group creation
fails.

The thermal control interface would be unavailable with no indication
of failure.

Check the return value and on failure clean up any sysfs groups that
were successfully created before the error, then propagate the error to
the caller which already handles it correctly via goto err_rem_rapl.

Signed-off-by: Aravind Anilraj <aravindanilraj0702@gmail.com>
Link: https://patch.msgid.link/20260329070642.10721-3-aravindanilraj0702@gmail.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2026-05-26 19:27:53 +02:00
..
int340x_thermal thermal: intel: int340x: Check return value of ptc_create_groups() 2026-05-26 19:27:53 +02:00
intel_bxt_pmic_thermal.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
intel_hfi.c thermal: intel: hfi: use cpumask_empty() in intel_hfi_offline() 2026-03-19 19:17:46 +01:00
intel_hfi.h thermal: intel: hfi: Enable notification interrupt 2022-02-03 19:50:49 +01:00
intel_pch_thermal.c thermal: intel: intel_pch_thermal: Drop explicit driver data clearing 2026-01-07 21:08:11 +01:00
intel_powerclamp.c thermal: intel: switch cpumask_get() to using cpumask_print_to_pagebuf() 2026-04-09 13:28:05 -04:00
intel_quark_dts_thermal.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
intel_soc_dts_iosf.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
intel_soc_dts_iosf.h thermal: intel: Set THERMAL_TRIP_FLAG_RW_TEMP directly 2024-02-27 12:04:01 +01:00
intel_soc_dts_thermal.c thermal: intel: intel_soc_dts_thermal: Switch to new Intel CPU model defines 2024-06-07 20:47:05 +02:00
intel_tcc_cooling.c drivers: thermal: intel: tcc_cooling: Drop redundant local variable 2026-02-01 14:00:19 +01:00
intel_tcc.c thermal: intel: fix typo "nagative" in comment for cpu argument 2026-01-15 21:18:14 +01:00
Kconfig thermal: intel: Select INT340X_THERMAL from INTEL_SOC_DTS_THERMAL 2025-11-07 20:45:37 +01:00
Makefile thermal: intel: menlow: Get rid of this driver 2023-04-27 19:24:13 +02:00
therm_throt.c thermal: intel: Use sysfs_emit() in a sysfs show function 2026-01-15 21:21:16 +01:00
thermal_interrupt.h thermal: intel: Protect clearing of thermal status bits 2022-11-23 20:09:06 +01:00
x86_pkg_temp_thermal.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00