]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
dma-mapping: remove a pointless memset in dma_atomic_pool_init
authorChristoph Hellwig <hch@lst.de>
Tue, 4 Dec 2018 16:04:31 +0000 (08:04 -0800)
committerChristoph Hellwig <hch@lst.de>
Thu, 13 Dec 2018 20:05:20 +0000 (21:05 +0100)
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>
kernel/dma/remap.c

index 8a44317cfc1ae75335bd08229abcc1239a437069..18cc09fc27b92a4fff6670d7916c0de364b1a031 100644 (file)
@@ -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);