diff options
-rw-r--r-- | net/ipv4/ip_gre.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/ipv4/ip_gre.c b/net/ipv4/ip_gre.c index 31bc94152693..5ef4da780ac1 100644 --- a/net/ipv4/ip_gre.c +++ b/net/ipv4/ip_gre.c | |||
@@ -1006,10 +1006,8 @@ static netdev_tx_t ipgre_tunnel_xmit(struct sk_buff *skb, struct net_device *dev | |||
1006 | 1006 | ||
1007 | if (skb_has_shared_frag(skb)) { | 1007 | if (skb_has_shared_frag(skb)) { |
1008 | err = __skb_linearize(skb); | 1008 | err = __skb_linearize(skb); |
1009 | if (err) { | 1009 | if (err) |
1010 | ip_rt_put(rt); | ||
1011 | goto tx_error; | 1010 | goto tx_error; |
1012 | } | ||
1013 | } | 1011 | } |
1014 | 1012 | ||
1015 | *ptr = 0; | 1013 | *ptr = 0; |