]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - drivers/iommu/intel-iommu.c
mm: wire up GFP flag passing in dma_alloc_from_contiguous
[mirror_ubuntu-jammy-kernel.git] / drivers / iommu / intel-iommu.c
index f5e02f8e737113123991607219ad23a12b2d1c54..a8f7ae0eb7a471cbb89b895f4151c4d31b47e934 100644 (file)
@@ -3829,7 +3829,7 @@ static void *intel_alloc_coherent(struct device *dev, size_t size,
        if (gfpflags_allow_blocking(flags)) {
                unsigned int count = size >> PAGE_SHIFT;
 
-               page = dma_alloc_from_contiguous(dev, count, order);
+               page = dma_alloc_from_contiguous(dev, count, order, flags);
                if (page && iommu_no_mapping(dev) &&
                    page_to_phys(page) + size > dev->coherent_dma_mask) {
                        dma_release_from_contiguous(dev, page, count);