Skip to content

platform/x86: Fix reference leaks

Armin Wolf lkml platform-driver-x86 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 2 repliesIn review
  2. v32 patches 1 replySuperseded
  3. v22 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch3 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2platform/x86: think-lmi: Fix reference leakdrivers/platform/x86/think-lmi.c+20 -40 replies
2/2platform/x86: hp-bioscfg: Fix reference leakdrivers/platform/x86/hp/hp-bioscfg/bioscfg.c+10 -41 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchMark PearsonIlpo JärvinenJorge Lopez
1/2R-b R-b
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v4 thread

Cover letter [PATCH v4 0/2] platform/x86: Fix reference leaks

If a duplicate attribute is found using kset_find_obj(), a reference to that attribute is returned which needs to be disposed accordingly using kobject_put(). This issue likely first appeared inside the dell-wmi-sysman driver, see
commit 7295a996fdab ("platform/x86: dell-sysman: Fix reference leak"). However, it also seems that the bug was copied from this driver into the think-lmi and hp-bioscfg drivers. Maybe a more abstract fw_attr_class could prevent such issues in the future by abstracting away the kobject handling?

Armin Wolf (2):
platform/x86: think-lmi: Fix reference leak
platform/x86: hp-bioscfg: Fix reference leak

 drivers/platform/x86/hp/hp-bioscfg/bioscfg.c | 14 ++++++++----
 drivers/platform/x86/think-lmi.c             | 24 ++++++++++++++++----
 2 files changed, 30 insertions(+), 8 deletions(-)

--
2.39.2