[PATCH v2 0/2] platform/x86/intel-uncore-freq: Fix error handling

From: Srinivas Pandruvada

Date: Sun Nov 29 2026 - 14:45:06 EST


While reviewing the driver code with AI models, identified a few corner
cases during the device probe and removal paths where error handling and
resource cleanup were insufficient or improperly ordered.

v2:
In patch 2/2: Use scoped guard

Didn't use Tested-by: Arnav Kapoor <kapoorarnav43@xxxxxxxxx>
as there is code change.

Srinivas Pandruvada (2):
platform/x86/intel-uncore-freq: Don't remove entries which are not
added
platform/x86/intel-uncore-freq: Fix deadlock when removing attributes

.../uncore-frequency-common.c | 21 ++++++++++++++-----
.../uncore-frequency/uncore-frequency-tpmi.c | 3 ++-
2 files changed, 18 insertions(+), 6 deletions(-)

--
2.56.0