X86 platform drivers
 help / color / mirror / Atom feed
* [PATCH v2 0/3] platform/x86: think-lmi: Fix resource cleanup flaws
@ 2025-06-29  2:32 Kurt Borja
  2025-06-29  2:32 ` [PATCH v2 1/3] platform/x86: think-lmi: Create ksets consecutively Kurt Borja
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Kurt Borja @ 2025-06-29  2:32 UTC (permalink / raw)
  To: Mark Pearson, Hans de Goede, Ilpo Järvinen
  Cc: platform-driver-x86, linux-kernel, Kurt Borja

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 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/lenovo/think-lmi.c | 90 +++++++++++----------------------
 1 file changed, 30 insertions(+), 60 deletions(-)
---
base-commit: 73f0f2b52c5ea67b3140b23f58d8079d158839c8
change-id: 20250628-lmi-fix-98143b10d9fd
-- 
 ~ Kurt


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-06-30 17:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-29  2:32 [PATCH v2 0/3] platform/x86: think-lmi: Fix resource cleanup flaws Kurt Borja
2025-06-29  2:32 ` [PATCH v2 1/3] platform/x86: think-lmi: Create ksets consecutively Kurt Borja
2025-06-29  2:32 ` [PATCH v2 2/3] platform/x86: think-lmi: Fix kobject cleanup Kurt Borja
2025-06-29  2:32 ` [PATCH v2 3/3] platform/x86: think-lmi: Fix sysfs group cleanup Kurt Borja
2025-06-30  8:54 ` [PATCH v2 0/3] platform/x86: think-lmi: Fix resource cleanup flaws Ilpo Järvinen
2025-06-30 17:19   ` Kurt Borja

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox