arm64: Honor __GFP_ZERO in dma allocations
authorSuzuki K. Poulose <suzuki.poulose@arm.com>
Thu, 19 Mar 2015 18:17:09 +0000 (18:17 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 20 Mar 2015 18:18:54 +0000 (18:18 +0000)
commit7132813c384515c9dede1ae20e56f3895feb7f1e
treea556d550a01f87e38b84ebe539bc7c598ea101d6
parent130c93fd10c4d150e39d8879420c1351aa207fa9
arm64: Honor __GFP_ZERO in dma allocations

Current implementation doesn't zero out the pages allocated.
Honor the __GFP_ZERO flag and zero out if set.

Cc: <stable@vger.kernel.org> # v3.14+
Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Suzuki K. Poulose <suzuki.poulose@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/mm/dma-mapping.c