]> Pileus Git - ~andy/linux/blobdiff - net/ipv4/ip_gre.c
Merge branches 'upstream-fixes' and 'magicmouse' into for-linus
[~andy/linux] / net / ipv4 / ip_gre.c
index 8871067560dba3ee7686fd2add36bc50f5f2587c..d7bb94c48345b90e4a80c27e8338da4dbe28dec0 100644 (file)
@@ -731,9 +731,9 @@ static netdev_tx_t ipgre_tunnel_xmit(struct sk_buff *skb, struct net_device *dev
                }
 #if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
                else if (skb->protocol == htons(ETH_P_IPV6)) {
+                       struct neighbour *neigh = dst_get_neighbour(skb_dst(skb));
                        const struct in6_addr *addr6;
                        int addr_type;
-                       struct neighbour *neigh = skb_dst(skb)->neighbour;
 
                        if (neigh == NULL)
                                goto tx_error;