OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58092d1
)
ipv4: fix infinite retry loop in IP-Config
author
Benjamin Zores
<benjamin.zores@alcatel-lucent.fr>
Fri, 30 Jan 2009 00:19:13 +0000
(16:19 -0800)
committer
David S. Miller
<davem@davemloft.net>
Fri, 30 Jan 2009 00:19:13 +0000
(16:19 -0800)
Signed-off-by: Benjamin Zores <benjamin.zores@alcatel-lucent.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ipconfig.c
patch
|
blob
|
history
diff --git
a/net/ipv4/ipconfig.c
b/net/ipv4/ipconfig.c
index
42a0f3d
..
d722013
100644
(file)
--- a/
net/ipv4/ipconfig.c
+++ b/
net/ipv4/ipconfig.c
@@
-1268,6
+1268,9
@@
__be32 __init root_nfs_parse_addr(char *name)
static int __init ip_auto_config(void)
{
__be32 addr;
+#ifdef IPCONFIG_DYNAMIC
+ int retries = CONF_OPEN_RETRIES;
+#endif
#ifdef CONFIG_PROC_FS
proc_net_fops_create(&init_net, "pnp", S_IRUGO, &pnp_seq_fops);
@@
-1304,9
+1307,6
@@
static int __init ip_auto_config(void)
#endif
ic_first_dev->next) {
#ifdef IPCONFIG_DYNAMIC
-
- int retries = CONF_OPEN_RETRIES;
-
if (ic_dynamic() < 0) {
ic_close_devs();