android_kernel_oneplus_msm8998/drivers/of
Navid Emamdoost 265c6b8ab5 of: unittest: fix memory leak in unittest_data_add
[ Upstream commit e13de8fe0d6a51341671bbe384826d527afe8d44 ]

In unittest_data_add, a copy buffer is created via kmemdup. This buffer
is leaked if of_fdt_unflatten_tree fails. The release for the
unittest_data buffer is added.

Fixes: b951f9dc7f ("Enabling OF selftest to run without machine's devicetree")
Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com>
Reviewed-by: Frank Rowand <frowand.list@gmail.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-11-10 11:21:09 +01:00
..
unittest-data
address.c
base.c of: add helper to lookup compatible child node 2018-12-01 09:46:35 +01:00
device.c of: fix of_device_get_modalias returned length when truncating buffers 2018-03-22 09:23:21 +01:00
dynamic.c
fdt.c
fdt_address.c
irq.c
Kconfig
Makefile
of_mdio.c
of_mtd.c
of_net.c
of_pci.c
of_pci_irq.c
of_private.h
of_reserved_mem.c
overlay.c
pdt.c
platform.c
resolver.c
unittest.c of: unittest: fix memory leak in unittest_data_add 2019-11-10 11:21:09 +01:00