9
0
Fork 0

of of_free: remove old node from allnodes list

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2013-01-09 15:04:54 +01:00
parent 818dccf28b
commit 969120f125
1 changed files with 2 additions and 0 deletions

View File

@ -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);