Files
linux/drivers
Frank Rowand b712f00a98 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>
2020-04-24 08:01:17 +02:00
..
2020-04-24 08:01:02 +02:00
2020-03-11 18:02:56 +01:00
2019-05-14 19:18:42 +02:00
2018-01-17 09:45:27 +01:00
2019-07-31 07:28:24 +02:00
2018-12-21 14:13:13 +01:00
2018-11-13 11:15:11 -08:00
2018-10-03 17:00:46 -07:00
2020-02-28 16:36:04 +01:00