]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/x86/kernel/pci-dma.c
Merge branch 'akpm-current/current'
[karo-tx-linux.git] / arch / x86 / kernel / pci-dma.c
index cd99433b8ba17597cbc9e91aba9c40eee7e05e4b..6ba014c61d62d20a078dd260103f23465a47a8cd 100644 (file)
@@ -90,7 +90,7 @@ void *dma_generic_alloc_coherent(struct device *dev, size_t size,
 again:
        page = NULL;
        /* CMA can be used only in the context which permits sleeping */
-       if (flag & __GFP_WAIT) {
+       if (gfpflags_allow_blocking(flag)) {
                page = dma_alloc_from_contiguous(dev, count, get_order(size));
                if (page && page_to_phys(page) + size > dma_mask) {
                        dma_release_from_contiguous(dev, page, count);