diff options
Diffstat (limited to 'net/ipv4/udp_offload.c')
-rw-r--r-- | net/ipv4/udp_offload.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/udp_offload.c b/net/ipv4/udp_offload.c index 4807544d018b..59035bc3008d 100644 --- a/net/ipv4/udp_offload.c +++ b/net/ipv4/udp_offload.c | |||
@@ -79,7 +79,7 @@ struct sk_buff *skb_udp_tunnel_segment(struct sk_buff *skb, | |||
79 | /* segment inner packet. */ | 79 | /* segment inner packet. */ |
80 | enc_features = skb->dev->hw_enc_features & netif_skb_features(skb); | 80 | enc_features = skb->dev->hw_enc_features & netif_skb_features(skb); |
81 | segs = skb_mac_gso_segment(skb, enc_features); | 81 | segs = skb_mac_gso_segment(skb, enc_features); |
82 | if (!segs || IS_ERR(segs)) { | 82 | if (IS_ERR_OR_NULL(segs)) { |
83 | skb_gso_error_unwind(skb, protocol, tnl_hlen, mac_offset, | 83 | skb_gso_error_unwind(skb, protocol, tnl_hlen, mac_offset, |
84 | mac_len); | 84 | mac_len); |
85 | goto out; | 85 | goto out; |