Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 143624
b: refs/heads/master
c: 014c90d
h: refs/heads/master
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Apr 16, 2009
1 parent 8a75271 commit 8b8f595
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: 4ccb457966391295bd9b3644f6bdc9ddd97b6051
refs/heads/master: 014c90dbb9b63bae067afc80a7931a76c5268ae3
3 changes: 3 additions & 0 deletions trunk/drivers/base/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1142,6 +1142,9 @@ int device_for_each_child(struct device *parent, void *data,
struct device *child;
int error = 0;

if (!parent->p)
return 0;

klist_iter_init(&parent->p->klist_children, &i);
while ((child = next_device(&i)) && !error)
error = fn(child, data);
Expand Down

0 comments on commit 8b8f595

Please sign in to comment.