]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Sep 2014 21:03:28 +0000 (14:03 -0700)
commitb687855dd461817a0a6713e6d29f23ac617ea152
tree4a2e91fa69c62cf249d3728ae37586870c1ff955
parent11395041baf60180d696e900f26d295f20d765eb
sparc32: dma_alloc_coherent must honour gfp flags

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