diff options
Diffstat (limited to 'net/ipv6/raw.c')
-rw-r--r-- | net/ipv6/raw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c index 548d0763f4d3..efb0047f6880 100644 --- a/net/ipv6/raw.c +++ b/net/ipv6/raw.c | |||
@@ -176,7 +176,7 @@ static int ipv6_raw_deliver(struct sk_buff *skb, int nexthdr) | |||
176 | if (sk == NULL) | 176 | if (sk == NULL) |
177 | goto out; | 177 | goto out; |
178 | 178 | ||
179 | net = skb->dev->nd_net; | 179 | net = dev_net(skb->dev); |
180 | sk = __raw_v6_lookup(net, sk, nexthdr, daddr, saddr, IP6CB(skb)->iif); | 180 | sk = __raw_v6_lookup(net, sk, nexthdr, daddr, saddr, IP6CB(skb)->iif); |
181 | 181 | ||
182 | while (sk) { | 182 | while (sk) { |
@@ -363,7 +363,7 @@ void raw6_icmp_error(struct sk_buff *skb, int nexthdr, | |||
363 | if (sk != NULL) { | 363 | if (sk != NULL) { |
364 | saddr = &ipv6_hdr(skb)->saddr; | 364 | saddr = &ipv6_hdr(skb)->saddr; |
365 | daddr = &ipv6_hdr(skb)->daddr; | 365 | daddr = &ipv6_hdr(skb)->daddr; |
366 | net = skb->dev->nd_net; | 366 | net = dev_net(skb->dev); |
367 | 367 | ||
368 | while ((sk = __raw_v6_lookup(net, sk, nexthdr, saddr, daddr, | 368 | while ((sk = __raw_v6_lookup(net, sk, nexthdr, saddr, daddr, |
369 | IP6CB(skb)->iif))) { | 369 | IP6CB(skb)->iif))) { |