|
@@ -74,7 +74,7 @@ static struct sk_buff *gre_gso_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, ghl, mac_offset, mac_len);
|
|
|
goto out;
|
|
|
}
|