mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
net/core/skbuff: Check the return value of skb_copy_bits()
skb_copy_bits() could fail, which requires a check on the return value. Signed-off-by: Li Zhong <floridsleeves@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
76de008340
commit
c624c58e08
1 changed files with 2 additions and 3 deletions
|
@ -4205,9 +4205,8 @@ normal:
|
|||
SKB_GSO_CB(nskb)->csum_start =
|
||||
skb_headroom(nskb) + doffset;
|
||||
} else {
|
||||
skb_copy_bits(head_skb, offset,
|
||||
skb_put(nskb, len),
|
||||
len);
|
||||
if (skb_copy_bits(head_skb, offset, skb_put(nskb, len), len))
|
||||
goto err;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue