summaryrefslogtreecommitdiff
path: root/drivers/clk/at91/clk-usb.c
diff options
context:
space:
mode:
authorFrank Rowand <frank.rowand@sony.com>2020-04-16 16:42:47 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-04-24 07:59:10 +0200
commit462cd23758889d2908ff1ef1eca3cd3fd7ac9b33 (patch)
tree3f9fd2e7fcf5b46fe01000f7b33384e467fb7a27 /drivers/clk/at91/clk-usb.c
parent462d89c078340ea3a0ffd46d2be37addadb949a1 (diff)
of: unittest: kmemleak in of_unittest_platform_populate()
[ Upstream commit 216830d2413cc61be3f76bc02ffd905e47d2439e ] kmemleak reports several memory leaks from devicetree unittest. This is the fix for problem 2 of 5. of_unittest_platform_populate() left an elevated reference count for grandchild nodes (which are platform devices). Fix the platform device reference counts so that the memory will be freed. Fixes: fb2caa50fbac ("of/selftest: add testcase for nodes with same name and address") 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/clk/at91/clk-usb.c')
0 files changed, 0 insertions, 0 deletions