Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 193789
b: refs/heads/master
c: b79d1d5
h: refs/heads/master
i:
  193787: 8e33462
v: v3
  • Loading branch information
David S. Miller committed Mar 26, 2010
1 parent 7a0ed19 commit ba74373
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: b54c9b98bbfb4836b1f7441c5a9db24affd3c2e9
refs/heads/master: b79d1d54cf0672f764402fe4711ef5306f917bd3
7 changes: 4 additions & 3 deletions trunk/net/ipv6/addrconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1341,9 +1341,9 @@ EXPORT_SYMBOL(ipv6_chk_prefix);
struct inet6_ifaddr *ipv6_get_ifaddr(struct net *net, const struct in6_addr *addr,
struct net_device *dev, int strict)
{
struct inet6_ifaddr *ifp = NULL;
struct hlist_node *node;
struct inet6_ifaddr *ifp, *result = NULL;
unsigned int hash = ipv6_addr_hash(addr);
struct hlist_node *node;

rcu_read_lock_bh();
hlist_for_each_entry_rcu(ifp, node, &inet6_addr_lst[hash], addr_lst) {
Expand All @@ -1352,14 +1352,15 @@ struct inet6_ifaddr *ipv6_get_ifaddr(struct net *net, const struct in6_addr *add
if (ipv6_addr_equal(&ifp->addr, addr)) {
if (dev == NULL || ifp->idev->dev == dev ||
!(ifp->scope&(IFA_LINK|IFA_HOST) || strict)) {
result = ifp;
in6_ifa_hold(ifp);
break;
}
}
}
rcu_read_unlock_bh();

return ifp;
return result;
}

/* Gets referenced address, destroys ifaddr */
Expand Down

0 comments on commit ba74373

Please sign in to comment.