patch-2.4.20 linux-2.4.20/arch/i386/kernel/pci-dma.c
Next file: linux-2.4.20/arch/i386/kernel/pci-i386.c
Previous file: linux-2.4.20/arch/i386/kernel/mpparse.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Thu Nov 28 15:53:09 2002
- Orig file:
linux-2.4.19/arch/i386/kernel/pci-dma.c
- Orig date:
Mon Feb 14 15:34:21 2000
diff -urN linux-2.4.19/arch/i386/kernel/pci-dma.c linux-2.4.20/arch/i386/kernel/pci-dma.c
@@ -19,7 +19,7 @@
void *ret;
int gfp = GFP_ATOMIC;
- if (hwdev == NULL || hwdev->dma_mask != 0xffffffff)
+ if (hwdev == NULL || ((u32)hwdev->dma_mask < 0xffffffff))
gfp |= GFP_DMA;
ret = (void *)__get_free_pages(gfp, get_order(size));
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)