From: David S. Miller Date: Tue, 23 May 2006 09:07:22 +0000 (-0700) Subject: [SPARC64]: Respect gfp_t argument to dma_alloc_coherent(). X-Git-Tag: v2.6.17-rc5~15^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42f142371e48fbc44956d57b4e506bb6ce673cd7;p=pandora-kernel.git [SPARC64]: Respect gfp_t argument to dma_alloc_coherent(). Using asm-generic/dma-mapping.h does not work because pushing the call down to pci_alloc_coherent() causes the gfp_t argument of dma_alloc_coherent() to be ignored. Fix this by implementing things directly, and adding a gfp_t argument we can use in the internal call down to the PCI DMA implementation of pci_alloc_coherent(). This fixes massive memory corruption when using the sound driver layer, which passes things like __GFP_COMP down into these routines and (correctly) expects that to work. Signed-off-by: David S. Miller --- Reading git-diff-tree failed