Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 299023
b: refs/heads/master
c: 87151b8
h: refs/heads/master
i:
  299021: c34926d
  299019: 824b91e
  299015: 296e88d
  299007: b54b3d7
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Apr 11, 2012
1 parent 36b6fdc commit e6d1089
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: 996304bbea3d2a094b7ba54c3bd65d3fffeac57b
refs/heads/master: 87151b8689d890dfb495081f7be9b9e257f7a2df
4 changes: 3 additions & 1 deletion trunk/net/core/skbuff.c
Original file line number Diff line number Diff line change
Expand Up @@ -952,9 +952,11 @@ int pskb_expand_head(struct sk_buff *skb, int nhead, int ntail,
goto adjust_others;
}

data = kmalloc(size + sizeof(struct skb_shared_info), gfp_mask);
data = kmalloc(size + SKB_DATA_ALIGN(sizeof(struct skb_shared_info)),
gfp_mask);
if (!data)
goto nodata;
size = SKB_WITH_OVERHEAD(ksize(data));

/* Copy only real data... and, alas, header. This should be
* optimized for the cases when header is void.
Expand Down

0 comments on commit e6d1089

Please sign in to comment.