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 24b711e commit ff907a1Copy full SHA for ff907a1
net/core/skbuff.c
@@ -3720,6 +3720,7 @@ struct sk_buff *skb_segment(struct sk_buff *head_skb,
3720
net_warn_ratelimited(
3721
"skb_segment: too many frags: %u %u\n",
3722
pos, mss);
3723
+ err = -EINVAL;
3724
goto err;
3725
}
3726
@@ -3753,11 +3754,10 @@ struct sk_buff *skb_segment(struct sk_buff *head_skb,
3753
3754
3755
perform_csum_check:
3756
if (!csum) {
- if (skb_has_shared_frag(nskb)) {
3757
- err = __skb_linearize(nskb);
3758
- if (err)
3759
- goto err;
3760
- }
+ if (skb_has_shared_frag(nskb) &&
+ __skb_linearize(nskb))
+ goto err;
+
3761
if (!nskb->remcsum_offload)
3762
nskb->ip_summed = CHECKSUM_NONE;
3763
SKB_GSO_CB(nskb)->csum =
0 commit comments