Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1227755 > unrolled thread

[GIT pull] x86 fix for 4.3

Started byThomas Gleixner <tglx@linutronix.de>
First post2015-09-18 12:40 +0200
Last post2015-09-18 12:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [GIT pull] x86 fix for 4.3 Thomas Gleixner <tglx@linutronix.de> - 2015-09-18 12:40 +0200

#1227755 — [GIT pull] x86 fix for 4.3

FromThomas Gleixner <tglx@linutronix.de>
Date2015-09-18 12:40 +0200
Subject[GIT pull] x86 fix for 4.3
Message-ID<qa1fc-8td-13@gated-at.bofh.it>
Linus,

please pull the latest x86-urgent-for-linus git tree from:

   git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-urgent-for-linus

A single regression fix for the x86 dma allocator which got wreckaged
in the merge window.

Thanks,

	tglx

------------------>
Junichi Nomura (1):
      x86/pci/dma: Fix gfp flags for coherent DMA memory allocation


 arch/x86/kernel/pci-dma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web