]> Git Repo - linux.git/commit - drivers/of/dynamic.c
of: dynamic: fix memory leak related to properties of __of_node_dup
authorLixin Wang <[email protected]>
Mon, 23 Oct 2017 03:19:53 +0000 (11:19 +0800)
committerRob Herring <[email protected]>
Mon, 23 Oct 2017 16:18:44 +0000 (11:18 -0500)
commit070ea018fa092f2ef41bef57896665a25f05d2d8
tree2e37ee4f89085d9b8c2e9eb0d916ede61fe51dbb
parent4ee7c0d9649d472d31969b9cbb8151161db6a807
of: dynamic: fix memory leak related to properties of __of_node_dup

If a node with no properties is dynamically added, then a property is
dynamically added to the node, then the property is dynamically removed,
the result will be node->properties == NULL and node->deadprops != NULL.

Add a separate function to release the properties in both lists.

Signed-off-by: Lixin Wang <[email protected]>
Reviewed-by: Frank Rowand <[email protected]>
Signed-off-by: Rob Herring <[email protected]>
drivers/of/dynamic.c
This page took 0.049309 seconds and 4 git commands to generate.