[PATCH 0/2] thermal: intel: int340x: Fix bugs in

From: aravindanilraj0702

Date: Sat Mar 28 2026 - 15:21:11 EST


From: Aravind Anilraj <aravindanilraj0702@xxxxxxxxx>

This series fixes two issues in the Intel int340x platform temperature
control driver.

Patch 1 fixes a potential shift overflow where a u32 value is shifted
into a u64 register without casting, leading to incorrect results.

Patch 2 checks and propagates the return value of ptc_create_groups() in
proc_thermal_ptc_add(). It also ensures proper cleanup of any previously
created sysfs groups on the error path.

Aravind Anilraj (2):
thermal: intel: int340x: Fix potential shift overflow in
ptc_mmio_write
thermal: intel: int340x: Check return value of ptc_create_groups()

.../intel/int340x_thermal/platform_temperature_control.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)

--
2.47.3