x86: Convert vmalloc()+memset() to vzalloc()
[sfrench/cifs-2.6.git] / arch / x86 / mm / pageattr-test.c
index e1d106909218681f35cd4e736987ce017a7de798..b0086567271c9956b2196e3ba302e4a77009e811 100644 (file)
@@ -123,12 +123,11 @@ static int pageattr_test(void)
        if (print)
                printk(KERN_INFO "CPA self-test:\n");
 
-       bm = vmalloc((max_pfn_mapped + 7) / 8);
+       bm = vzalloc((max_pfn_mapped + 7) / 8);
        if (!bm) {
                printk(KERN_ERR "CPA Cannot vmalloc bitmap\n");
                return -ENOMEM;
        }
-       memset(bm, 0, (max_pfn_mapped + 7) / 8);
 
        failed += print_split(&sa);
        srandom32(100);