Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 33300
b: refs/heads/master
c: 7b2e497
h: refs/heads/master
v: v3
  • Loading branch information
Christoph Hellwig authored and David S. Miller committed Aug 7, 2006
1 parent fbe0340 commit 3b15cae
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: 766ea8cce007e699679109df4fa469b870ba4860
refs/heads/master: 7b2e497a06c0e93719fda88820e057b635e8fae2
4 changes: 3 additions & 1 deletion trunk/net/core/skbuff.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,10 @@ struct sk_buff *__netdev_alloc_skb(struct net_device *dev,
struct sk_buff *skb;

skb = alloc_skb(length + NET_SKB_PAD, gfp_mask);
if (likely(skb))
if (likely(skb)) {
skb_reserve(skb, NET_SKB_PAD);
skb->dev = dev;
}
return skb;
}

Expand Down

0 comments on commit 3b15cae

Please sign in to comment.