Files
linux/drivers/of
Frank Rowand deeab11eab of: unittest: kmemleak in of_unittest_platform_populate()
[ Upstream commit 216830d241 ]

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: fb2caa50fb ("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>
2023-05-15 17:16:01 +09:00
..
2016-09-16 09:34:14 +01:00
2014-11-04 13:29:38 +00:00