]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
[PATCH] Mask off GFP flags before swiotlb_alloc_coherent
authorAndi Kleen <ak@muc.de>
Sat, 21 Jan 2006 21:13:13 +0000 (13:13 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 31 Jan 2006 06:13:18 +0000 (22:13 -0800)
Mask off GFP flags before swiotlb_alloc_coherent

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Chris Wright <chris@sous-sol.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86_64/kernel/pci-gart.c

index 2e28e855ec3cff500847957a51251368407fbea3..b27b0ff1067a7cbc1e34de83f489407bd72dcab8 100644 (file)
@@ -244,6 +244,7 @@ dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle,
                                           get_order(size));
 
                                if (swiotlb) {
+                                       gfp &= ~(GFP_DMA32|GFP_DMA);
                                        return
                                        swiotlb_alloc_coherent(dev, size,
                                                               dma_handle,