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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
index 924158393d04..ed9938014cf9 100644
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
@@ -2951,7 +2951,7 @@ int ipv6_chk_home_addr(struct net *net, struct in6_addr *addr)
2951 for (ifp = inet6_addr_lst[hash]; ifp; ifp = ifp->lst_next) { 2951 for (ifp = inet6_addr_lst[hash]; ifp; ifp = ifp->lst_next) {
2952 if (!net_eq(dev_net(ifp->idev->dev), net)) 2952 if (!net_eq(dev_net(ifp->idev->dev), net))
2953 continue; 2953 continue;
2954 if (ipv6_addr_cmp(&ifp->addr, addr) == 0 && 2954 if (ipv6_addr_equal(&ifp->addr, addr) &&
2955 (ifp->flags & IFA_F_HOMEADDRESS)) { 2955 (ifp->flags & IFA_F_HOMEADDRESS)) {
2956 ret = 1; 2956 ret = 1;
2957 break; 2957 break;