summaryrefslogtreecommitdiff
path: root/kernel/sysctl_binary.c
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2013-02-08 14:58:03 +1100
committerStephen Rothwell <sfr@canb.auug.org.au>2013-02-08 14:58:03 +1100
commitdf36655e17d85aeab6efbb36096b4120d8d3ad73 (patch)
tree6f0f80d42a96f03f9ff39e9b50b3344c5d6cf80e /kernel/sysctl_binary.c
parent61e5e6a7272e995083e4a23972aa9e0dc6e7d9ef (diff)
parent830ddd56fdb4a32e7e7227cec0ee8ac1721fba45 (diff)
Merge branch 'akpm/master'
Diffstat (limited to 'kernel/sysctl_binary.c')
-rw-r--r--kernel/sysctl_binary.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/sysctl_binary.c b/kernel/sysctl_binary.c
index b669ca1fa103..8ce70e518fa0 100644
--- a/kernel/sysctl_binary.c
+++ b/kernel/sysctl_binary.c
@@ -1193,9 +1193,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);