Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 204705
b: refs/heads/master
c: 7405217
h: refs/heads/master
i:
  204703: d446ef1
v: v3
  • Loading branch information
Julia Lawall authored and Benjamin Herrenschmidt committed Jul 9, 2010
1 parent 20a9d3e commit 42902e0
Show file tree
Hide file tree
Showing 2 changed files with 2 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: 307a54cc80ddc7e5d87c4862dd12f43a01355187
refs/heads/master: 74052173177b7f969d9cc0c8f136093e1d447a01
4 changes: 1 addition & 3 deletions trunk/arch/powerpc/platforms/pseries/reconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,10 @@ static int pSeries_reconfig_add_node(const char *path, struct property *proplist
if (!np)
goto out_err;

np->full_name = kmalloc(strlen(path) + 1, GFP_KERNEL);
np->full_name = kstrdup(path, GFP_KERNEL);
if (!np->full_name)
goto out_err;

strcpy(np->full_name, path);

np->properties = proplist;
of_node_set_flag(np, OF_DYNAMIC);
kref_init(&np->kref);
Expand Down

0 comments on commit 42902e0

Please sign in to comment.