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

From: frowand . list
Date: Thu Apr 16 2020 - 17:44:46 EST


From: Frank Rowand <frank.rowand@xxxxxxxx>

Original bug report:
https://bugzilla.kernel.org/show_bug.cgi?id=206203
https://lore.kernel.org/r/877dyqlles.fsf@xxxxxxxxxxxxxxxxxx

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(-)

--
Frank Rowand <frank.rowand@xxxxxxxx>