summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2015-09-18 17:06:28 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2015-09-18 17:06:28 +0200
commit09784fb8ef79f5c5adb9c1b4d0df000354e476e7 (patch)
tree329f69c311fa1d1da20052ce0920bb680d1ef5ae
parentMerge tag 'powerpc-4.3-2' of git://git.kernel.org/pub/scm/linux/kernel/git/po... (diff)
parentx86/pci/dma: Fix gfp flags for coherent DMA memory allocation (diff)
downloadlinux-09784fb8ef79f5c5adb9c1b4d0df000354e476e7.tar.xz
linux-09784fb8ef79f5c5adb9c1b4d0df000354e476e7.zip
Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 fix from Thomas Gleixner: "A single regression fix for the x86 dma allocator which got wreckaged in the merge window" * 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: x86/pci/dma: Fix gfp flags for coherent DMA memory allocation
-rw-r--r--arch/x86/kernel/pci-dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/pci-dma.c b/arch/x86/kernel/pci-dma.c
index 84b8ef82a159..1b55de1267cf 100644
--- a/arch/x86/kernel/pci-dma.c
+++ b/arch/x86/kernel/pci-dma.c
@@ -131,8 +131,8 @@ void dma_generic_free_coherent(struct device *dev, size_t size, void *vaddr,
bool arch_dma_alloc_attrs(struct device **dev, gfp_t *gfp)
{
- *gfp = dma_alloc_coherent_gfp_flags(*dev, *gfp);
*gfp &= ~(__GFP_DMA | __GFP_HIGHMEM | __GFP_DMA32);
+ *gfp = dma_alloc_coherent_gfp_flags(*dev, *gfp);
if (!*dev)
*dev = &x86_dma_fallback_dev;