Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 15292
b: refs/heads/master
c: 1d14280
h: refs/heads/master
v: v3
  • Loading branch information
Kristian Slavov authored and David S. Miller committed Dec 22, 2005
1 parent 2853dd0 commit 1ed898a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7eb1b3d372a53fe9220b9e3b579886db0fe2f897
refs/heads/master: 1d1428045c54ef3d172d480806e2066dde0b4b76
5 changes: 3 additions & 2 deletions trunk/net/ipv6/addrconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -634,15 +634,15 @@ static void ipv6_del_addr(struct inet6_ifaddr *ifp)
}
#endif

for (ifap = &idev->addr_list; (ifa=*ifap) != NULL;
ifap = &ifa->if_next) {
for (ifap = &idev->addr_list; (ifa=*ifap) != NULL;) {
if (ifa == ifp) {
*ifap = ifa->if_next;
__in6_ifa_put(ifp);
ifa->if_next = NULL;
if (!(ifp->flags & IFA_F_PERMANENT) || onlink > 0)
break;
deleted = 1;
continue;
} else if (ifp->flags & IFA_F_PERMANENT) {
if (ipv6_prefix_equal(&ifa->addr, &ifp->addr,
ifp->prefix_len)) {
Expand All @@ -666,6 +666,7 @@ static void ipv6_del_addr(struct inet6_ifaddr *ifp)
}
}
}
ifap = &ifa->if_next;
}
write_unlock_bh(&idev->lock);

Expand Down

0 comments on commit 1ed898a

Please sign in to comment.