]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - arch/x86/mm/init_64.c
Merge branch 'x86-mm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[~shefty/rdma-dev.git] / arch / x86 / mm / init_64.c
index 4d323fb770c28937f48496a392e2129fa297754d..c55f900fbf89253b5a568c50feadd08057c1dde9 100644 (file)
@@ -330,7 +330,7 @@ static __ref void *alloc_low_page(unsigned long *phys)
                panic("alloc_low_page: ran out of memory");
 
        adr = early_memremap(pfn * PAGE_SIZE, PAGE_SIZE);
-       memset(adr, 0, PAGE_SIZE);
+       clear_page(adr);
        *phys  = pfn * PAGE_SIZE;
        return adr;
 }