Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 133927
b: refs/heads/master
c: 81705ad
h: refs/heads/master
i:
  133925: 06cde37
  133923: 2da2f50
  133919: 861298c
v: v3
  • Loading branch information
Herbert Xu authored and David S. Miller committed Jan 30, 2009
1 parent 94f3af6 commit 1926481
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 86911732d3996a9da07914b280621450111bb6da
refs/heads/master: 81705ad1b2f926d2ef15ed95074a9c1fa9fb4dc4
8 changes: 5 additions & 3 deletions trunk/net/core/skbuff.c
Original file line number Diff line number Diff line change
Expand Up @@ -2591,9 +2591,11 @@ int skb_gro_receive(struct sk_buff **head, struct sk_buff *skb)

if (skb_shinfo(p)->frag_list)
goto merge;
else if (skb_headlen(skb) <= skb_gro_offset(skb) &&
skb_shinfo(p)->nr_frags + skb_shinfo(skb)->nr_frags <=
MAX_SKB_FRAGS) {
else if (skb_headlen(skb) <= skb_gro_offset(skb)) {
if (skb_shinfo(p)->nr_frags + skb_shinfo(skb)->nr_frags >
MAX_SKB_FRAGS)
return -E2BIG;

skb_shinfo(skb)->frags[0].page_offset +=
skb_gro_offset(skb) - skb_headlen(skb);
skb_shinfo(skb)->frags[0].size -=
Expand Down

0 comments on commit 1926481

Please sign in to comment.