We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b0fe96 commit 0d75a23Copy full SHA for 0d75a23
net/core/skbuff.c
@@ -3705,6 +3705,7 @@ struct sk_buff *skb_segment(struct sk_buff *head_skb,
3705
net_warn_ratelimited(
3706
"skb_segment: too many frags: %u %u\n",
3707
pos, mss);
3708
+ err = -EINVAL;
3709
goto err;
3710
}
3711
@@ -3738,11 +3739,10 @@ struct sk_buff *skb_segment(struct sk_buff *head_skb,
3738
3739
3740
perform_csum_check:
3741
if (!csum) {
- if (skb_has_shared_frag(nskb)) {
3742
- err = __skb_linearize(nskb);
3743
- if (err)
3744
- goto err;
3745
- }
+ if (skb_has_shared_frag(nskb) &&
+ __skb_linearize(nskb))
+ goto err;
+
3746
if (!nskb->remcsum_offload)
3747
nskb->ip_summed = CHECKSUM_NONE;
3748
SKB_GSO_CB(nskb)->csum =
0 commit comments