diff options
-rw-r--r-- | net/ipv6/addrconf.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 9d78c1229497..a0175edb6589 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c | |||
@@ -676,7 +676,6 @@ ipv6_add_addr(struct inet6_dev *idev, const struct in6_addr *addr, int pfxlen, | |||
676 | hash = ipv6_addr_hash(addr); | 676 | hash = ipv6_addr_hash(addr); |
677 | 677 | ||
678 | hlist_add_head_rcu(&ifa->addr_lst, &inet6_addr_lst[hash]); | 678 | hlist_add_head_rcu(&ifa->addr_lst, &inet6_addr_lst[hash]); |
679 | in6_ifa_hold(ifa); | ||
680 | spin_unlock(&addrconf_hash_lock); | 679 | spin_unlock(&addrconf_hash_lock); |
681 | 680 | ||
682 | write_lock(&idev->lock); | 681 | write_lock(&idev->lock); |
@@ -724,7 +723,6 @@ static void ipv6_del_addr(struct inet6_ifaddr *ifp) | |||
724 | 723 | ||
725 | spin_lock_bh(&addrconf_hash_lock); | 724 | spin_lock_bh(&addrconf_hash_lock); |
726 | hlist_del_init_rcu(&ifp->addr_lst); | 725 | hlist_del_init_rcu(&ifp->addr_lst); |
727 | __in6_ifa_put(ifp); | ||
728 | spin_unlock_bh(&addrconf_hash_lock); | 726 | spin_unlock_bh(&addrconf_hash_lock); |
729 | 727 | ||
730 | write_lock_bh(&idev->lock); | 728 | write_lock_bh(&idev->lock); |
@@ -2713,7 +2711,6 @@ static int addrconf_ifdown(struct net_device *dev, int how) | |||
2713 | /* clear hash table */ | 2711 | /* clear hash table */ |
2714 | spin_lock_bh(&addrconf_hash_lock); | 2712 | spin_lock_bh(&addrconf_hash_lock); |
2715 | hlist_del_init_rcu(&ifa->addr_lst); | 2713 | hlist_del_init_rcu(&ifa->addr_lst); |
2716 | __in6_ifa_put(ifa); | ||
2717 | spin_unlock_bh(&addrconf_hash_lock); | 2714 | spin_unlock_bh(&addrconf_hash_lock); |
2718 | } | 2715 | } |
2719 | 2716 | ||