projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
sysctl: fix null checking in bin_dn_node_address()
[linux-2.6-block.git]
/
kernel
/
sysctl_binary.c
diff --git
a/kernel/sysctl_binary.c
b/kernel/sysctl_binary.c
index b25115e8c7f36f9fe6750ea586031f3ad81ffec8..ebf72358e86aec33c270edd7e8167789fea59ff9 100644
(file)
--- a/
kernel/sysctl_binary.c
+++ b/
kernel/sysctl_binary.c
@@
-1171,9
+1171,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);