diff options
author | David Miller <davem@davemloft.net> | 2008-07-20 18:17:02 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-20 21:18:26 -0700 |
commit | 702beb87d6b4e08cca394b210679e5d7c2ac9383 (patch) | |
tree | 8bd3c2ae958e42dbc525a0ab3575148472dc28fe | |
parent | d1671a9c15f55a1475d41269494518e348880c33 (diff) | |
download | kernel_samsung_aries-702beb87d6b4e08cca394b210679e5d7c2ac9383.zip kernel_samsung_aries-702beb87d6b4e08cca394b210679e5d7c2ac9383.tar.gz kernel_samsung_aries-702beb87d6b4e08cca394b210679e5d7c2ac9383.tar.bz2 |
ipv6: Fix warning in addrconf code.
Reported by Linus.
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | net/ipv6/addrconf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 580ae50..9f4fcce 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c @@ -2315,12 +2315,11 @@ static void init_loopback(struct net_device *dev) static void addrconf_add_linklocal(struct inet6_dev *idev, struct in6_addr *addr) { struct inet6_ifaddr * ifp; - struct net *net = dev_net(idev->dev); u32 addr_flags = IFA_F_PERMANENT; #ifdef CONFIG_IPV6_OPTIMISTIC_DAD if (idev->cnf.optimistic_dad && - !net->ipv6.devconf_all->forwarding) + !dev_net(idev->dev)->ipv6.devconf_all->forwarding) addr_flags |= IFA_F_OPTIMISTIC; #endif |