OSDN Git Service

mm: wire up GFP flag passing in dma_alloc_from_contiguous
[uclinux-h8/linux.git] / drivers / iommu / amd_iommu.c
index 1b5b8c5..09bd3b2 100644 (file)
@@ -2672,7 +2672,7 @@ static void *alloc_coherent(struct device *dev, size_t size,
                        return NULL;
 
                page = dma_alloc_from_contiguous(dev, size >> PAGE_SHIFT,
-                                                get_order(size));
+                                                get_order(size), flag);
                if (!page)
                        return NULL;
        }