]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitde956fe132c71299e48f5177c7f4090e15b42042
treea0f3cf53f2f912a8953f5f0722560c1f7a1374e2
parent9b3acf302e2161fcfb7ffe6901f3c6e8394009bf
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: a4d4abc95a87 ("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