aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/addrconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6/addrconf.c')
-rw-r--r--net/ipv6/addrconf.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
index fd6782e3a038..a7bda0757053 100644
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
@@ -718,12 +718,9 @@ static void ipv6_del_addr(struct inet6_ifaddr *ifp)
718 struct inet6_ifaddr *ifa, *ifn; 718 struct inet6_ifaddr *ifa, *ifn;
719 struct inet6_dev *idev = ifp->idev; 719 struct inet6_dev *idev = ifp->idev;
720 int state; 720 int state;
721 int hash;
722 int deleted = 0, onlink = 0; 721 int deleted = 0, onlink = 0;
723 unsigned long expires = jiffies; 722 unsigned long expires = jiffies;
724 723
725 hash = ipv6_addr_hash(&ifp->addr);
726
727 spin_lock_bh(&ifp->state_lock); 724 spin_lock_bh(&ifp->state_lock);
728 state = ifp->state; 725 state = ifp->state;
729 ifp->state = INET6_IFADDR_STATE_DEAD; 726 ifp->state = INET6_IFADDR_STATE_DEAD;
@@ -1087,7 +1084,7 @@ static int ipv6_get_saddr_eval(struct net *net,
1087 case IPV6_SADDR_RULE_PRIVACY: 1084 case IPV6_SADDR_RULE_PRIVACY:
1088 { 1085 {
1089 /* Rule 7: Prefer public address 1086 /* Rule 7: Prefer public address
1090 * Note: prefer temprary address if use_tempaddr >= 2 1087 * Note: prefer temporary address if use_tempaddr >= 2
1091 */ 1088 */
1092 int preftmp = dst->prefs & (IPV6_PREFER_SRC_PUBLIC|IPV6_PREFER_SRC_TMP) ? 1089 int preftmp = dst->prefs & (IPV6_PREFER_SRC_PUBLIC|IPV6_PREFER_SRC_TMP) ?
1093 !!(dst->prefs & IPV6_PREFER_SRC_TMP) : 1090 !!(dst->prefs & IPV6_PREFER_SRC_TMP) :
@@ -1971,7 +1968,7 @@ ok:
1971 * to the stored lifetime since we'll 1968 * to the stored lifetime since we'll
1972 * be updating the timestamp below, 1969 * be updating the timestamp below,
1973 * else we'll set it back to the 1970 * else we'll set it back to the
1974 * minumum. 1971 * minimum.
1975 */ 1972 */
1976 if (prefered_lft != ifp->prefered_lft) { 1973 if (prefered_lft != ifp->prefered_lft) {
1977 valid_lft = stored_lft; 1974 valid_lft = stored_lft;
@@ -4540,7 +4537,7 @@ static void __addrconf_sysctl_unregister(struct ipv6_devconf *p)
4540 4537
4541 t = p->sysctl; 4538 t = p->sysctl;
4542 p->sysctl = NULL; 4539 p->sysctl = NULL;
4543 unregister_sysctl_table(t->sysctl_header); 4540 unregister_net_sysctl_table(t->sysctl_header);
4544 kfree(t->dev_name); 4541 kfree(t->dev_name);
4545 kfree(t); 4542 kfree(t);
4546} 4543}