Commit 5fa8ad64 authored by Andi Kleen's avatar Andi Kleen Committed by Greg Kroah-Hartman

[PATCH] Mask off GFP flags before swiotlb_alloc_coherent

Mask off GFP flags before swiotlb_alloc_coherent
Signed-off-by: default avatarAndi Kleen <ak@suse.de>
Signed-off-by: default avatarChris Wright <chris@sous-sol.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 4f0ae08d
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment