aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/ip6_tunnel.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6/ip6_tunnel.c')
-rw-r--r--net/ipv6/ip6_tunnel.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/net/ipv6/ip6_tunnel.c b/net/ipv6/ip6_tunnel.c
index 4f4483e697bd..da43038ae18e 100644
--- a/net/ipv6/ip6_tunnel.c
+++ b/net/ipv6/ip6_tunnel.c
@@ -903,8 +903,14 @@ static int ip6_tnl_xmit2(struct sk_buff *skb,
903 else { 903 else {
904 dst = ip6_route_output(net, NULL, fl); 904 dst = ip6_route_output(net, NULL, fl);
905 905
906 if (dst->error || xfrm_lookup(net, &dst, fl, NULL, 0) < 0) 906 if (dst->error)
907 goto tx_err_link_failure; 907 goto tx_err_link_failure;
908 dst = xfrm_lookup(net, dst, fl, NULL, 0);
909 if (IS_ERR(dst)) {
910 err = PTR_ERR(dst);
911 dst = NULL;
912 goto tx_err_link_failure;
913 }
908 } 914 }
909 915
910 tdev = dst->dev; 916 tdev = dst->dev;