Skip to content

Commit

Permalink
korina: use netdev_alloc_skb_ip_align() here, too
Browse files Browse the repository at this point in the history
This patch completes commit 89d71a6
which missed this spot, as it seems.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Phil Sutter authored and David S. Miller committed Jun 2, 2010
1 parent ceb3d23 commit 53ee490
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/korina.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 53ee490

Please sign in to comment.