summaryrefslogtreecommitdiffstats
path: root/arch/arm/cpu/mmu-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/cpu/mmu-common.c')
-rw-r--r--arch/arm/cpu/mmu-common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/cpu/mmu-common.c b/arch/arm/cpu/mmu-common.c
index c5b24bff8e..aeefbb2daa 100644
--- a/arch/arm/cpu/mmu-common.c
+++ b/arch/arm/cpu/mmu-common.c
@@ -43,7 +43,8 @@ void *dma_alloc_map(size_t size, dma_addr_t *dma_handle, unsigned flags)
if (dma_handle)
*dma_handle = (dma_addr_t)ret;
- dma_inv_range(ret, size);
+ memset(ret, 0, size);
+ dma_flush_range(ret, size);
arch_remap_range(ret, size, flags);