]> git.baikalelectronics.ru Git - kernel.git/commit
of: overlay: kmemleak in dup_and_fixup_symbol_prop()
authorFrank Rowand <frank.rowand@sony.com>
Thu, 16 Apr 2020 21:42:49 +0000 (16:42 -0500)
committerRob Herring <robh@kernel.org>
Fri, 17 Apr 2020 13:31:34 +0000 (08:31 -0500)
commit478ff649b1c8eb2409b1a54fb75eb46f7c29f140
treed4e50935f64e7f0c2e672174ec88c33f2cc4afff
parent145fc138f9aae4f9e1331352e301df28e16aed35
of: overlay: kmemleak in dup_and_fixup_symbol_prop()

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

target_path was not freed in the non-error path.

Fixes: e0a58f3e08d4 ("of: overlay: remove a dependency on device node full_name")
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/overlay.c