Commit 646cd355 authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] fix macmace get_free_pages parameters

(Matthew Wilcox)
parent baf8f9bb
......@@ -319,8 +319,8 @@ static int mace_open(struct net_device *dev)
/* Allocate the DMA ring buffers */
mp->rx_ring = (void *) __get_free_pages(GFP_DMA, N_RX_PAGES);
mp->tx_ring = (void *) __get_free_pages(GFP_DMA, 0);
mp->rx_ring = (void *) __get_free_pages(GFP_KERNEL | GFP_DMA, N_RX_PAGES);
mp->tx_ring = (void *) __get_free_pages(GFP_KERNEL | GFP_DMA, 0);
if (mp->tx_ring==NULL || mp->rx_ring==NULL) {
if (mp->rx_ring) free_pages((u32) mp->rx_ring, N_RX_PAGES);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment