summaryrefslogtreecommitdiff
path: root/kernel/dma
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-12-04 08:04:31 -0800
committerChristoph Hellwig <hch@lst.de>2018-12-13 21:05:20 +0100
commit20b105feda8d42360bd690b8fdf6b2f00ba4a993 (patch)
tree4f0f585eff733764c3fbd0e39ae1e4f30d104cd4 /kernel/dma
parent48cc8f7a1d5a4b1c5b32de5ad8a53b1c9194c6d5 (diff)
dma-mapping: remove a pointless memset in dma_atomic_pool_init
We already zero the memory after allocating it from the pool that this function fills, and having the memset here in this form means we can't support CMA highmem allocations. Signed-off-by: Christoph Hellwig <hch@lst.de> Reported-by: Russell King - ARM Linux <linux@armlinux.org.uk>
Diffstat (limited to 'kernel/dma')
-rw-r--r--kernel/dma/remap.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/kernel/dma/remap.c b/kernel/dma/remap.c
index 8a44317cfc1a..18cc09fc27b9 100644
--- a/kernel/dma/remap.c
+++ b/kernel/dma/remap.c
@@ -121,7 +121,6 @@ int __init dma_atomic_pool_init(gfp_t gfp, pgprot_t prot)
if (!page)
goto out;
- memset(page_address(page), 0, atomic_pool_size);
arch_dma_prep_coherent(page, atomic_pool_size);
atomic_pool = gen_pool_create(PAGE_SHIFT, -1);