diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2013-02-08 14:58:03 +1100 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2013-02-08 14:58:03 +1100 |
commit | df36655e17d85aeab6efbb36096b4120d8d3ad73 (patch) | |
tree | 6f0f80d42a96f03f9ff39e9b50b3344c5d6cf80e /kernel/sysctl_binary.c | |
parent | 61e5e6a7272e995083e4a23972aa9e0dc6e7d9ef (diff) | |
parent | 830ddd56fdb4a32e7e7227cec0ee8ac1721fba45 (diff) |
Merge branch 'akpm/master'
Diffstat (limited to 'kernel/sysctl_binary.c')
-rw-r--r-- | kernel/sysctl_binary.c | 3 |
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); |