diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-04 19:31:56 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-04 19:31:56 -0500 |
commit | d779188d2baf436e67fe8816fca2ef53d246900f (patch) | |
tree | 9bac75842a5611172860feec3c4019ff874a2b89 /net | |
parent | f61ea1b0c825a20a1826bb43a226387091934586 (diff) | |
parent | ac67c6247361b3b8644b34e5301a46d5069c1373 (diff) |
Merge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6
Diffstat (limited to 'net')
-rw-r--r-- | net/core/dev.c | 3 | ||||
-rw-r--r-- | net/core/utils.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 29ba109d3e54..5081287923d5 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -626,7 +626,7 @@ struct net_device * dev_get_by_flags(unsigned short if_flags, unsigned short mas | |||
626 | * Network device names need to be valid file names to | 626 | * Network device names need to be valid file names to |
627 | * to allow sysfs to work | 627 | * to allow sysfs to work |
628 | */ | 628 | */ |
629 | static int dev_valid_name(const char *name) | 629 | int dev_valid_name(const char *name) |
630 | { | 630 | { |
631 | return !(*name == '\0' | 631 | return !(*name == '\0' |
632 | || !strcmp(name, ".") | 632 | || !strcmp(name, ".") |
@@ -3270,6 +3270,7 @@ EXPORT_SYMBOL(__dev_get_by_index); | |||
3270 | EXPORT_SYMBOL(__dev_get_by_name); | 3270 | EXPORT_SYMBOL(__dev_get_by_name); |
3271 | EXPORT_SYMBOL(__dev_remove_pack); | 3271 | EXPORT_SYMBOL(__dev_remove_pack); |
3272 | EXPORT_SYMBOL(__skb_linearize); | 3272 | EXPORT_SYMBOL(__skb_linearize); |
3273 | EXPORT_SYMBOL(dev_valid_name); | ||
3273 | EXPORT_SYMBOL(dev_add_pack); | 3274 | EXPORT_SYMBOL(dev_add_pack); |
3274 | EXPORT_SYMBOL(dev_alloc_name); | 3275 | EXPORT_SYMBOL(dev_alloc_name); |
3275 | EXPORT_SYMBOL(dev_close); | 3276 | EXPORT_SYMBOL(dev_close); |
diff --git a/net/core/utils.c b/net/core/utils.c index 7b5970fc9e40..587eb7787deb 100644 --- a/net/core/utils.c +++ b/net/core/utils.c | |||
@@ -175,7 +175,7 @@ __u32 in_aton(const char *str) | |||
175 | if (*str != '\0') | 175 | if (*str != '\0') |
176 | { | 176 | { |
177 | val = 0; | 177 | val = 0; |
178 | while (*str != '\0' && *str != '.') | 178 | while (*str != '\0' && *str != '.' && *str != '\n') |
179 | { | 179 | { |
180 | val *= 10; | 180 | val *= 10; |
181 | val += *str - '0'; | 181 | val += *str - '0'; |