Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 53ee490a authored by Phil Sutter's avatar Phil Sutter Committed by David S. Miller
Browse files

korina: use netdev_alloc_skb_ip_align() here, too



This patch completes commit 89d71a66
which missed this spot, as it seems.

Signed-off-by: default avatarPhil Sutter <phil@nwl.cc>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ceb3d239
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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);