commit | 7b2e497a06c0e93719fda88820e057b635e8fae2 | [log] [tgz] |
---|---|---|
author | Christoph Hellwig <hch@lst.de> | Mon Aug 07 16:09:04 2006 -0700 |
committer | David S. Miller <davem@davemloft.net> | Mon Aug 07 16:09:04 2006 -0700 |
tree | 5ca55484d813656f56cf7fc86cafd041327c7dae | |
parent | 766ea8cce007e699679109df4fa469b870ba4860 [diff] [blame] |
[NET]: Assign skb->dev in netdev_alloc_skb Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: David S. Miller <davem@davemloft.net>
diff --git a/net/core/skbuff.c b/net/core/skbuff.c index 022d889..c54f366 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c
@@ -268,8 +268,10 @@ 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; }