]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sparc32: dma_alloc_coherent must honour gfp flags
authorDaniel Hellstrom <daniel@gaisler.com>
Wed, 10 Sep 2014 12:17:52 +0000 (14:17 +0200)
committerJiri Slaby <jslaby@suse.cz>
Fri, 31 Oct 2014 14:05:06 +0000 (15:05 +0100)
commit7a55c4d1f2952a793bc3614b212a2fa5fccfc42b
tree42854436394b48749abff0694905f5d98a411d5c
parentdd55fec8c50bbc799ddef0e0adb8a980c074e28d
sparc32: dma_alloc_coherent must honour gfp flags

[ Upstream commit d1105287aabe88dbb3af825140badaa05cf0442c ]

dma_zalloc_coherent() calls dma_alloc_coherent(__GFP_ZERO)
but the sparc32 implementations sbus_alloc_coherent() and
pci32_alloc_coherent() doesn't take the gfp flags into
account.

Tested on the SPARC32/LEON GRETH Ethernet driver which fails
due to dma_alloc_coherent(__GFP_ZERO) returns non zeroed
pages.

Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/ioport.c