Files
linux/drivers/of
Navid Emamdoost 0228cd262d of: unittest: fix memory leak in unittest_data_add
[ Upstream commit e13de8fe0d ]

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:23:19 +01:00
..
2016-09-16 09:34:14 +01:00
2016-09-23 09:35:16 +02:00
2014-11-04 13:29:38 +00:00