patch-2.4.22 linux-2.4.22/drivers/net/macmace.c
Next file: linux-2.4.22/drivers/net/macsonic.c
Previous file: linux-2.4.22/drivers/net/mace.c
Back to the patch index
Back to the overall index
-  Lines: 11
-  Date:
2003-08-25 04:44:42.000000000 -0700
-  Orig file: 
linux-2.4.21/drivers/net/macmace.c
-  Orig date: 
2003-06-13 07:51:35.000000000 -0700
diff -urN linux-2.4.21/drivers/net/macmace.c linux-2.4.22/drivers/net/macmace.c
@@ -320,8 +320,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);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)