summaryrefslogtreecommitdiffstats
path: root/drivers/net/korina.c
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2010-05-29 15:23:35 +0200
committerDavid S. Miller <davem@davemloft.net>2010-06-02 15:12:18 +0200
commit53ee490ac5836d506ea5830f821045aafa3c196f (patch)
tree030e5f7dc4ac91216145e2bc7d388e497fbed99d /drivers/net/korina.c
parentkorina: fix deadlock on RX FIFO overrun (diff)
downloadlinux-53ee490ac5836d506ea5830f821045aafa3c196f.tar.xz
linux-53ee490ac5836d506ea5830f821045aafa3c196f.zip
korina: use netdev_alloc_skb_ip_align() here, too
This patch completes commit 89d71a66c40d629e3b1285def543ab1425558cd5 which missed this spot, as it seems. Signed-off-by: Phil Sutter <phil@nwl.cc> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--drivers/net/korina.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/korina.c b/drivers/net/korina.c
index 13533f937e05..3e9b6b7be42e 100644
--- a/drivers/net/korina.c
+++ b/drivers/net/korina.c
@@ -765,10 +765,9 @@ static int korina_alloc_ring(struct net_device *dev)
/* Initialize the receive descriptors */
for (i = 0; i < KORINA_NUM_RDS; i++) {
- skb = dev_alloc_skb(KORINA_RBSIZE + 2);
+ skb = netdev_alloc_skb_ip_align(dev, KORINA_RBSIZE);
if (!skb)
return -ENOMEM;
- skb_reserve(skb, 2);
lp->rx_skb[i] = skb;
lp->rd_ring[i].control = DMA_DESC_IOD |
DMA_COUNT(KORINA_RBSIZE);