Messages in this thread Patch in this message | | | Date | Tue, 8 Apr 2003 01:25:38 +0100 | From | Alan Cox <> | Subject | PATCH: fix macmace get_free_pages parameters |
| |
(Matthew Wilcox) diff -u --new-file --recursive --exclude-from /usr/src/exclude linux-2.5.67/drivers/net/macmace.c linux-2.5.67-ac1/drivers/net/macmace.c --- linux-2.5.67/drivers/net/macmace.c 2003-03-26 19:59:52.000000000 +0000 +++ linux-2.5.67-ac1/drivers/net/macmace.c 2003-04-03 23:37:41.000000000 +0100 @@ -319,8 +319,8 @@ /* 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); - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |