[PATCH 05/16] of of_free: remove old node from allnodes list
Sascha Hauer
s.hauer at pengutronix.de
Fri Jan 11 08:24:25 EST 2013
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
drivers/of/base.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/of/base.c b/drivers/of/base.c
index 6c1ccd7..3e91e36 100644
--- a/drivers/of/base.c
+++ b/drivers/of/base.c
@@ -761,6 +761,8 @@ void of_free(struct device_node *node)
if (!node)
return;
+ list_del(&node->list);
+
list_for_each_entry_safe(p, pt, &node->properties, list) {
list_del(&p->list);
free(p->name);
--
1.7.10.4
More information about the barebox
mailing list