Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 212848
b: refs/heads/master
c: 0373721
h: refs/heads/master
v: v3
  • Loading branch information
Julia Lawall authored and Benjamin Herrenschmidt committed Sep 2, 2010
1 parent 520b63b commit 13f8053
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a8e25c61546bdc30d936bc0f4fd3a7cb594490c5
refs/heads/master: 0373721b19217c85c8c9435b79f0bac88fec9f26
9 changes: 6 additions & 3 deletions trunk/arch/powerpc/platforms/powermac/pfunc_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -837,8 +837,10 @@ struct pmf_function *__pmf_find_function(struct device_node *target,
return NULL;
find_it:
dev = pmf_find_device(actor);
if (dev == NULL)
return NULL;
if (dev == NULL) {
result = NULL;
goto out;
}

list_for_each_entry(func, &dev->functions, link) {
if (name && strcmp(name, func->name))
Expand All @@ -850,8 +852,9 @@ struct pmf_function *__pmf_find_function(struct device_node *target,
result = func;
break;
}
of_node_put(actor);
pmf_put_device(dev);
out:
of_node_put(actor);
return result;
}

Expand Down

0 comments on commit 13f8053

Please sign in to comment.