]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - arch/x86/kernel/pci-dma.c
mm: wire up GFP flag passing in dma_alloc_from_contiguous
[mirror_ubuntu-bionic-kernel.git] / arch / x86 / kernel / pci-dma.c
index d30c37750765675f58b05ead98f1cbdfb9f854ec..d5c223c9cf1117e4cd522a4774d0b0f05ac4cf08 100644 (file)
@@ -91,7 +91,8 @@ again:
        page = NULL;
        /* CMA can be used only in the context which permits sleeping */
        if (gfpflags_allow_blocking(flag)) {
-               page = dma_alloc_from_contiguous(dev, count, get_order(size));
+               page = dma_alloc_from_contiguous(dev, count, get_order(size),
+                                                flag);
                if (page && page_to_phys(page) + size > dma_mask) {
                        dma_release_from_contiguous(dev, page, count);
                        page = NULL;