Skip to content

of: unittest: kmleak detected memory leaks

[email protected] linux-devicetree lkml 1 version Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/5of: unittest: kmemleak on changeset destroydrivers/of/unittest.c+4 -00 replies
2/5of: unittest: kmemleak in of_unittest_platform_populate()drivers/of/unittest.c+5 -20 replies
3/5of: unittest: kmemleak in of_unittest_overlay_high_level()drivers/of/unittest.c+4 -10 replies
4/5of: overlay: kmemleak in dup_and_fixup_symbol_prop()drivers/of/overlay.c+2 -00 replies
5/5of: unittest: kmemleak in duplicate property updatedrivers/of/unittest-data/overlay_bad_add_dup_prop.dts drivers/of/unittest.c+25 -101 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] of: unittest: kmleak detected memory leaks

From: Frank Rowand <[email protected]>

Original bug report:
https://bugzilla.kernel.org/show_bug.cgi?id=206203
https://lore.kernel.org/r/[email protected]

kmemleak detected many memory leaks originating if devicetree unittests.

Five separate causes were found. Four causes were bugs and one was expected.

Fix the four bugs and modify the test that led to the expected memory leak to no longer have a memory leak.

Frank Rowand (5):
of: unittest: kmemleak on changeset destroy
of: unittest: kmemleak in of_unittest_platform_populate()
of: unittest: kmemleak in of_unittest_overlay_high_level()
of: overlay: kmemleak in dup_and_fixup_symbol_prop()
of: unittest: kmemleak in duplicate property update

 drivers/of/overlay.c                               |  2 ++
 .../of/unittest-data/overlay_bad_add_dup_prop.dts  | 23 ++++++++++++++----
 drivers/of/unittest.c                              | 28 +++++++++++++++-------
 3 files changed, 40 insertions(+), 13 deletions(-)
Signature · 1 line
Frank Rowand <[email protected]>