of: unittest: kmemleak in of_unittest_overlay_high_level()
authorFrank Rowand <frank.rowand@sony.com>
Thu, 16 Apr 2020 21:42:48 +0000 (16:42 -0500)
committerRob Herring <robh@kernel.org>
Fri, 17 Apr 2020 13:31:34 +0000 (08:31 -0500)
commit145fc138f9aae4f9e1331352e301df28e16aed35
treea0f3cf53f2f912a8953f5f0722560c1f7a1374e2
parent216830d2413cc61be3f76bc02ffd905e47d2439e
of: unittest: kmemleak in of_unittest_overlay_high_level()

kmemleak reports several memory leaks from devicetree unittest.
This is the fix for problem 3 of 5.

of_unittest_overlay_high_level() failed to kfree the newly created
property when the property named 'name' is skipped.

Fixes: 39a751a4cb7e ("of: change overlay apply input data from unflattened to FDT")
Reported-by: Erhard F. <erhard_f@mailbox.org>
Signed-off-by: Frank Rowand <frank.rowand@sony.com>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/unittest.c