Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 73526
b: refs/heads/master
c: 78608ba
h: refs/heads/master
v: v3
  • Loading branch information
Chuck Lever authored and David S. Miller committed Nov 11, 2007
1 parent 1fd2297 commit 9f5348b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: 39aaac114e192bce500204f9c9e1fffff4c2b519
refs/heads/master: 78608ba0326f1448f9a10dbb402a38192559f639
4 changes: 3 additions & 1 deletion trunk/include/linux/skbuff.h
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,9 @@ extern void skb_truesize_bug(struct sk_buff *skb);

static inline void skb_truesize_check(struct sk_buff *skb)
{
if (unlikely((int)skb->truesize < sizeof(struct sk_buff) + skb->len))
int len = sizeof(struct sk_buff) + skb->len;

if (unlikely((int)skb->truesize < len))
skb_truesize_bug(skb);
}

Expand Down

0 comments on commit 9f5348b

Please sign in to comment.