Skip to content

Commit 702beb8

Browse files
davem330torvalds
authored andcommitted
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>
1 parent d1671a9 commit 702beb8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

net/ipv6/addrconf.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2315,12 +2315,11 @@ static void init_loopback(struct net_device *dev)
23152315
static void addrconf_add_linklocal(struct inet6_dev *idev, struct in6_addr *addr)
23162316
{
23172317
struct inet6_ifaddr * ifp;
2318-
struct net *net = dev_net(idev->dev);
23192318
u32 addr_flags = IFA_F_PERMANENT;
23202319

23212320
#ifdef CONFIG_IPV6_OPTIMISTIC_DAD
23222321
if (idev->cnf.optimistic_dad &&
2323-
!net->ipv6.devconf_all->forwarding)
2322+
!dev_net(idev->dev)->ipv6.devconf_all->forwarding)
23242323
addr_flags |= IFA_F_OPTIMISTIC;
23252324
#endif
23262325

0 commit comments

Comments
 (0)