X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=kernel%2Fsysctl_binary.c;h=17c20c7563a521dc68d466450bdc5e17ad5ca054;hb=60cbc8c9108be5542b8b7b9e16231fdee062f6d9;hp=3b8e028b96014a088b6227859b9163e8bceddb5a;hpb=655402d41742cc8e490f4357745408d361bdd2d4;p=kernel%2Flinux-3.0.git diff --git a/kernel/sysctl_binary.c b/kernel/sysctl_binary.c index 3b8e028..17c20c7 100644 --- a/kernel/sysctl_binary.c +++ b/kernel/sysctl_binary.c @@ -1194,9 +1194,10 @@ static ssize_t bin_dn_node_address(struct file *file, /* Convert the decnet address to binary */ result = -EIO; - nodep = strchr(buf, '.') + 1; + nodep = strchr(buf, '.'); if (!nodep) goto out; + ++nodep; area = simple_strtoul(buf, NULL, 10); node = simple_strtoul(nodep, NULL, 10); @@ -1354,7 +1355,7 @@ static ssize_t binary_sysctl(const int *name, int nlen, fput(file); out_putname: - putname(pathname); + __putname(pathname); out: return result; }