diff options
Diffstat (limited to 'net/ipv6/ip6_input.c')
-rw-r--r-- | net/ipv6/ip6_input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ip6_input.c b/net/ipv6/ip6_input.c index 6b8e6d76a58b..ebf54ae90a0c 100644 --- a/net/ipv6/ip6_input.c +++ b/net/ipv6/ip6_input.c | |||
@@ -84,7 +84,7 @@ int ipv6_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pt | |||
84 | * arrived via the sending interface (ethX), because of the | 84 | * arrived via the sending interface (ethX), because of the |
85 | * nature of scoping architecture. --yoshfuji | 85 | * nature of scoping architecture. --yoshfuji |
86 | */ | 86 | */ |
87 | IP6CB(skb)->iif = skb->dst ? ((struct rt6_info *)skb->dst)->rt6i_idev->dev->ifindex : dev->ifindex; | 87 | IP6CB(skb)->iif = skb->dst ? ip6_dst_idev(skb->dst)->dev->ifindex : dev->ifindex; |
88 | 88 | ||
89 | if (unlikely(!pskb_may_pull(skb, sizeof(*hdr)))) | 89 | if (unlikely(!pskb_may_pull(skb, sizeof(*hdr)))) |
90 | goto err; | 90 | goto err; |