Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 96060
b: refs/heads/master
c: c800578
h: refs/heads/master
v: v3
  • Loading branch information
Johannes Berg authored and David S. Miller committed May 4, 2008
1 parent 8f292ff commit fe319f2
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: 3ba08b00e0d8413d79be9cab8ec085ceb6ae6fd6
refs/heads/master: c8005785102e5b67ecf213f06a3d6c001f6f8cb4
4 changes: 3 additions & 1 deletion trunk/net/core/skbuff.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,9 @@ struct sk_buff *__alloc_skb(unsigned int size, gfp_t gfp_mask,
goto nodata;

/*
* See comment in sk_buff definition, just before the 'tail' member
* Only clear those fields we need to clear, not those that we will
* actually initialise below. Hence, don't put any more fields after
* the tail pointer in struct sk_buff!
*/
memset(skb, 0, offsetof(struct sk_buff, tail));
skb->truesize = size + sizeof(struct sk_buff);
Expand Down

0 comments on commit fe319f2

Please sign in to comment.