diff --git a/net/ipv6/ip6_gre.c b/net/ipv6/ip6_gre.c index 4491afc0e9759123a3637f9a8e5c4db470173049..a5b28d534fa7ba0e01612fd01a72d9cc0fd35dbf 100644 --- a/net/ipv6/ip6_gre.c +++ b/net/ipv6/ip6_gre.c @@ -988,7 +988,7 @@ static netdev_tx_t ip6erspan_tunnel_xmit(struct sk_buff *skb, if (unlikely(!tun_info || !(tun_info->mode & IP_TUNNEL_INFO_TX) || ip_tunnel_info_af(tun_info) != AF_INET6)) - return -EINVAL; + goto tx_err; key = &tun_info->key; memset(&fl6, 0, sizeof(fl6));