Skip to content

Commit

Permalink
ipv4: fix infinite retry loop in IP-Config
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Zores <benjamin.zores@alcatel-lucent.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Benjamin Zores authored and David S. Miller committed Jan 30, 2009
1 parent 58092d1 commit 9d8dba6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions net/ipv4/ipconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit 9d8dba6

Please sign in to comment.