Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c4d017f2 authored by Joe Perches's avatar Joe Perches Committed by Ingo Molnar
Browse files

x86: Convert vmalloc()+memset() to vzalloc()

parent 29a6ccca
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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);