linux/drivers/thermal/intel
Kaushlendra Kumar 5c4e940075 thermal: int340x: Fix sysfs group leak on DLVR registration failure
[ Upstream commit 15176b818e ]

When DLVR sysfs group creation fails in proc_thermal_rfim_add(),
the function returns immediately without cleaning up the FIVR group
that may have been created earlier.

Add proper error unwinding to remove the FIVR group before returning
failure.

Signed-off-by: Kaushlendra Kumar <kaushlendra.kumar@intel.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Link: https://patch.msgid.link/LV3PR11MB876881B77D32A2854AD2908EF563A@LV3PR11MB8768.namprd11.prod.outlook.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2026-03-04 07:20:38 -05:00
..
int340x_thermal thermal: int340x: Fix sysfs group leak on DLVR registration failure 2026-03-04 07:20:38 -05: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 x86/msr: Rename 'wrmsrl()' to 'wrmsrq()' 2025-04-10 11:58:33 +02: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: Improve cooling log 2024-06-07 21:24:37 +02:00
intel_powerclamp.c x86/msr: Rename 'rdmsrl_safe()' to 'rdmsrq_safe()' 2025-04-10 11:58:38 +02:00
intel_quark_dts_thermal.c x86/cpu: Fix FAM5_QUARK_X1000 to use X86_MATCH_VFM() 2024-10-31 12:02:21 -07:00
intel_soc_dts_iosf.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -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.c x86/cpu: Fix #define name for Intel CPU model 0x5A 2025-02-04 10:05:53 -08:00
intel_tcc_cooling.c x86/msr: Add explicit includes of <asm/msr.h> 2025-05-02 10:23:47 +02:00
Kconfig thermal: intel: Fix compile issue when CONFIG_NET is not defined 2024-12-19 12:35:46 +01:00
Makefile thermal: intel: menlow: Get rid of this driver 2023-04-27 19:24:13 +02:00
therm_throt.c x86/msr: Rename 'wrmsrl_safe()' to 'wrmsrq_safe()' 2025-04-10 11:58:44 +02: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 thermal: intel: x86_pkg_temp_thermal: Handle invalid temperature 2026-02-26 14:59:00 -08:00