[PATCH v3 0/3] platform/x86: think-lmi: Fix resource cleanup flaws

Kurt Borja posted 3 patches 3 months, 1 week ago
drivers/platform/x86/think-lmi.c | 90 ++++++++++++++--------------------------
1 file changed, 30 insertions(+), 60 deletions(-)
[PATCH v3 0/3] platform/x86: think-lmi: Fix resource cleanup flaws
Posted by Kurt Borja 3 months, 1 week ago
Hi all,

First patch is a prerequisite in order to avoid NULL pointer
dereferences in error paths. Then two fixes follow.

Signed-off-by: Kurt Borja <kuurtb@gmail.com>
---
Changes in v3:
- Add Cc stable tags to all patches
- Rebase on top of the 'fixes' branch
- Link to v2: https://lore.kernel.org/r/20250628-lmi-fix-v2-0-c530e1c959d7@gmail.com

Changes in v2:

[PATCH 02]
  - Remove kobject_del() and commit message remark. It turns out it's
    optional to call this (my bad)
  - Leave only one fixes tag. The other two are not necessary.

- Link to v1: https://lore.kernel.org/r/20250628-lmi-fix-v1-0-c6eec9aa3ca7@gmail.com

---
Kurt Borja (3):
      platform/x86: think-lmi: Create ksets consecutively
      platform/x86: think-lmi: Fix kobject cleanup
      platform/x86: think-lmi: Fix sysfs group cleanup

 drivers/platform/x86/think-lmi.c | 90 ++++++++++++++--------------------------
 1 file changed, 30 insertions(+), 60 deletions(-)
---
base-commit: 173bbec6693f3f3f00dac144f3aa0cd62fb60d33
change-id: 20250628-lmi-fix-98143b10d9fd
-- 
 ~ Kurt
Re: [PATCH v3 0/3] platform/x86: think-lmi: Fix resource cleanup flaws
Posted by Ilpo Järvinen 3 months, 1 week ago
On Mon, 30 Jun 2025 14:31:18 -0300, Kurt Borja wrote:

> First patch is a prerequisite in order to avoid NULL pointer
> dereferences in error paths. Then two fixes follow.
> 
> 


Thank you for your contribution, it has been applied to my local
review-ilpo-fixes branch. Note it will show up in the public
platform-drivers-x86/review-ilpo-fixes branch only once I've pushed my
local branch there, which might take a while.

The list of commits applied:
[1/3] platform/x86: think-lmi: Create ksets consecutively
      commit: 8dab34ca77293b409c3223636dde915a22656748
[2/3] platform/x86: think-lmi: Fix kobject cleanup
      commit: 9110056fe10b0519529bdbbac37311a5037ea0c2
[3/3] platform/x86: think-lmi: Fix sysfs group cleanup
      commit: 4f30f946f27b7f044cf8f3f1f353dee1dcd3517a

--
 i.