From 42902e078dcd3552b1c443b8b0325f30b3bbb3aa Mon Sep 17 00:00:00 2001 From: Julia Lawall Date: Fri, 14 May 2010 09:30:13 +0000 Subject: [PATCH] --- yaml --- r: 204705 b: refs/heads/master c: 74052173177b7f969d9cc0c8f136093e1d447a01 h: refs/heads/master i: 204703: d446ef1c603b73968dd812291f589d81f1a9ca31 v: v3 --- [refs] | 2 +- trunk/arch/powerpc/platforms/pseries/reconfig.c | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index f30838042bb9..5d67c13ee74a 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 307a54cc80ddc7e5d87c4862dd12f43a01355187 +refs/heads/master: 74052173177b7f969d9cc0c8f136093e1d447a01 diff --git a/trunk/arch/powerpc/platforms/pseries/reconfig.c b/trunk/arch/powerpc/platforms/pseries/reconfig.c index 1a58637bcea5..57ddbb43b33a 100644 --- a/trunk/arch/powerpc/platforms/pseries/reconfig.c +++ b/trunk/arch/powerpc/platforms/pseries/reconfig.c @@ -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);