|
@@ -79,7 +79,7 @@ struct sk_buff *skb_udp_tunnel_segment(struct sk_buff *skb,
|
|
|
/* segment inner packet. */
|
|
|
enc_features = skb->dev->hw_enc_features & netif_skb_features(skb);
|
|
|
segs = skb_mac_gso_segment(skb, enc_features);
|
|
|
- if (!segs || IS_ERR(segs)) {
|
|
|
+ if (IS_ERR_OR_NULL(segs)) {
|
|
|
skb_gso_error_unwind(skb, protocol, tnl_hlen, mac_offset,
|
|
|
mac_len);
|
|
|
goto out;
|