diff options
author | James Morris <jmorris@namei.org> | 2009-12-09 09:01:03 +0100 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2009-12-09 09:01:03 +0100 |
commit | 1ad1f10cd915744bbe52b19423653b38287d827d (patch) | |
tree | ae072aace36b45a55d80b8cbf1b6d92523a88ea0 /drivers/net/sgiseeq.c | |
parent | selinux: remove a useless return (diff) | |
parent | Merge branches 'timers-for-linus-ntp' and 'irq-core-for-linus' of git://git.k... (diff) | |
download | linux-1ad1f10cd915744bbe52b19423653b38287d827d.tar.xz linux-1ad1f10cd915744bbe52b19423653b38287d827d.zip |
Merge branch 'master' into next
Diffstat (limited to 'drivers/net/sgiseeq.c')
-rw-r--r-- | drivers/net/sgiseeq.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/sgiseeq.c b/drivers/net/sgiseeq.c index f4dfd1f679a9..6b364a6c6c60 100644 --- a/drivers/net/sgiseeq.c +++ b/drivers/net/sgiseeq.c @@ -365,11 +365,10 @@ static inline void sgiseeq_rx(struct net_device *dev, struct sgiseeq_private *sp } skb_reserve(newskb, 2); } else { - skb = netdev_alloc_skb(dev, len + 2); - if (skb) { - skb_reserve(skb, 2); + skb = netdev_alloc_skb_ip_align(dev, len); + if (skb) skb_copy_to_linear_data(skb, rd->skb->data, len); - } + newskb = rd->skb; } memory_squeeze: |