diff options
Diffstat (limited to 'drivers/net/korina.c')
-rw-r--r-- | drivers/net/korina.c | 3 |
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) | |||
765 | 765 | ||
766 | /* Initialize the receive descriptors */ | 766 | /* Initialize the receive descriptors */ |
767 | for (i = 0; i < KORINA_NUM_RDS; i++) { | 767 | for (i = 0; i < KORINA_NUM_RDS; i++) { |
768 | skb = dev_alloc_skb(KORINA_RBSIZE + 2); | 768 | skb = netdev_alloc_skb_ip_align(dev, KORINA_RBSIZE); |
769 | if (!skb) | 769 | if (!skb) |
770 | return -ENOMEM; | 770 | return -ENOMEM; |
771 | skb_reserve(skb, 2); | ||
772 | lp->rx_skb[i] = skb; | 771 | lp->rx_skb[i] = skb; |
773 | lp->rd_ring[i].control = DMA_DESC_IOD | | 772 | lp->rd_ring[i].control = DMA_DESC_IOD | |
774 | DMA_COUNT(KORINA_RBSIZE); | 773 | DMA_COUNT(KORINA_RBSIZE); |