Frank Rowand
462cd23758
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: 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 07:59:10 +02:00
..
unittest-data
of/unittest: replace 'selftest' with 'unittest'
2015-03-25 00:53:29 -05:00
address.c
of: Add OF_DMA_DEFAULT_COHERENT & select it on powerpc
2020-02-14 16:31:01 -05:00
base.c
of: fix missing kobject init for !SYSFS && OF_DYNAMIC config
2020-04-24 07:59:10 +02:00
device.c
of: fix of_device_get_modalias returned length when truncating buffers
2018-03-22 09:17:41 +01:00
dynamic.c
of: use pr_fmt prefix for all console printing
2016-07-18 16:57:42 -05:00
fdt.c
earlycon: Use a pointer table to fix __earlycon_table stride
2018-05-01 15:13:09 -07:00
fdt_address.c
of: use pr_fmt prefix for all console printing
2016-07-18 16:57:42 -05:00
irq.c
of/irq: Break out msi-map lookup (again)
2016-09-16 09:34:14 +01:00
Kconfig
of: Add OF_DMA_DEFAULT_COHERENT & select it on powerpc
2020-02-14 16:31:01 -05:00
Makefile
MTD updates for v4.7:
2016-05-24 11:00:20 -07:00
of_mdio.c
of: mdio: Fix a signedness bug in of_phy_get_and_connect()
2020-01-29 10:24:32 +01:00
of_net.c
of_net: factor out repetitive code from of_get_mac_address()
2015-03-29 08:56:17 +01:00
of_numa.c
of, numa: Validate some distance map rules
2018-11-21 09:26:00 +01:00
of_pci.c
of/irq: Break out msi-map lookup (again)
2016-09-16 09:34:14 +01:00
of_pci_irq.c
of_pci_irq: Silence bogus "of_irq_parse_pci() failed ..." messages.
2015-09-17 14:46:11 -05:00
of_private.h
of: fix memory leak related to safe_name()
2016-06-24 15:16:10 -05:00
of_reserved_mem.c
DeviceTree update for 4.8:
2016-07-30 11:32:01 -07:00
overlay.c
of: use pr_fmt prefix for all console printing
2016-07-18 16:57:42 -05:00
pdt.c
of: Eliminate of_allnodes list
2014-11-04 13:29:38 +00:00
platform.c
Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus
2016-10-15 09:26:12 -07:00
resolver.c
of: overlay: add resolver error prints
2016-07-18 17:18:36 -05:00
unittest.c
of: unittest: kmemleak in of_unittest_platform_populate()
2020-04-24 07:59:10 +02:00