lkml.org 
[lkml]   [2003]   [Apr]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectPATCH: 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/
\
 
 \ /
  Last update: 2005-03-22 13:34    [W:0.025 / U:0.700 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site