Skip to content

Commit

Permalink
ipv6/addrconf: call addrconf_ifdown with consistent values
Browse files Browse the repository at this point in the history
Second parameter of addrconf_ifdown "how" is used as a boolean
internally. It does not make sense to call it with something different
of 0 or 1.

This value is set to 2 in all git history.

Signed-off-by: Florent Fourcot <florent.fourcot@wifirst.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Florent Fourcot authored and David S. Miller committed Aug 3, 2020
1 parent b90a126 commit d208a42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv6/addrconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -7189,7 +7189,7 @@ void addrconf_cleanup(void)
continue;
addrconf_ifdown(dev, 1);
}
addrconf_ifdown(init_net.loopback_dev, 2);
addrconf_ifdown(init_net.loopback_dev, 1);

/*
* Check hash table.
Expand Down

0 comments on commit d208a42

Please sign in to comment.