Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 60682
b: refs/heads/master
c: 972d17c
h: refs/heads/master
v: v3
  • Loading branch information
Michael Ellerman authored and Paul Mackerras committed Jul 10, 2007
1 parent 5c4a099 commit fc48227
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 333e615483afc5203d1cae1490e50982d6eefbea
refs/heads/master: 972d17c9dbad378da61baa17f4c3ea6e154b186a
3 changes: 3 additions & 0 deletions trunk/arch/powerpc/kernel/prom.c
Original file line number Diff line number Diff line change
Expand Up @@ -1432,6 +1432,8 @@ void of_detach_node(const struct device_node *np)
write_lock(&devtree_lock);

parent = np->parent;
if (!parent)
goto out_unlock;

if (allnodes == np)
allnodes = np->allnext;
Expand All @@ -1455,6 +1457,7 @@ void of_detach_node(const struct device_node *np)
prevsib->sibling = np->sibling;
}

out_unlock:
write_unlock(&devtree_lock);
}

Expand Down

0 comments on commit fc48227

Please sign in to comment.