]> git.baikalelectronics.ru Git - kernel.git/commit
ARC: Don't memzero twice in dma_alloc_coherent for __GFP_ZERO
authorVineet Gupta <vgupta@synopsys.com>
Fri, 3 Jul 2015 05:10:43 +0000 (10:40 +0530)
committerVineet Gupta <vgupta@synopsys.com>
Mon, 6 Jul 2015 05:39:01 +0000 (11:09 +0530)
commitf18ab9ce0a65a92fe11e93ed4578d3b5c9aca4b2
treee32b70ab3aced772db554ab870c6ba64fda33650
parent42ce0b792f2bdddf839f01093435fcc25691afbb
ARC: Don't memzero twice in dma_alloc_coherent for __GFP_ZERO

alloc_pages_exact() get gfp flags and handle zero'ing already

And while it, fix the case where ioremap fails: return rightaway.

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/mm/dma.c