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 <redacted>
---
.../thermal/intel/int340x_thermal/processor_thermal_rfim.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
Adding Cc: srinivas.pandruvada@linux.intel.com
No code changes.
Original patch: https://patchwork.kernel.org/project/linux-pm/patch/20251215054538.3483331-1-kaushlendra.kumar@intel.com/
-----Original Message-----
From: Kumar, Kaushlendra <redacted>
Sent: Monday, December 15, 2025 11:16 AM
To: rafael@kernel.org; daniel.lezcano@linaro.org; Zhang, Rui <rui.zhang@intel.com>; lukasz.luba@arm.com
Cc: linux-pm@vger.kernel.org; Kumar, Kaushlendra <redacted>
Subject: [PATCH] thermal: int340x: Fix sysfs group leak on DLVR registration failure
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 <redacted>
---
.../thermal/intel/int340x_thermal/processor_thermal_rfim.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
On Wed, 2026-02-11 at 08:23 +0000, Kumar, Kaushlendra wrote:
Adding Cc: srinivas.pandruvada@linux.intel.com
No code changes.
Original patch:
https://patchwork.kernel.org/project/linux-pm/patch/20251215054538.3483331-1-kaushlendra.kumar@intel.com/
-----Original Message-----
From: Kumar, Kaushlendra <redacted>
Sent: Monday, December 15, 2025 11:16 AM
To: rafael@kernel.org; daniel.lezcano@linaro.org; Zhang, Rui
[off-list ref]; lukasz.luba@arm.com
Cc: linux-pm@vger.kernel.org; Kumar, Kaushlendra
[off-list ref]
Subject: [PATCH] thermal: int340x: Fix sysfs group leak on DLVR
registration failure
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 <redacted>
From: "Rafael J. Wysocki" <rafael@kernel.org> Date: 2026-02-11 19:57:50
On Wed, Feb 11, 2026 at 8:32 PM srinivas pandruvada
[off-list ref] wrote:
On Wed, 2026-02-11 at 08:23 +0000, Kumar, Kaushlendra wrote:
quoted
Adding Cc: srinivas.pandruvada@linux.intel.com
No code changes.
Original patch:
https://patchwork.kernel.org/project/linux-pm/patch/20251215054538.3483331-1-kaushlendra.kumar@intel.com/
-----Original Message-----
From: Kumar, Kaushlendra <redacted>
Sent: Monday, December 15, 2025 11:16 AM
To: rafael@kernel.org; daniel.lezcano@linaro.org; Zhang, Rui
[off-list ref]; lukasz.luba@arm.com
Cc: linux-pm@vger.kernel.org; Kumar, Kaushlendra
[off-list ref]
Subject: [PATCH] thermal: int340x: Fix sysfs group leak on DLVR
registration failure
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 <redacted>