x86: Convert vmalloc()+memset() to vzalloc()
Signed-off-by: Joe Perches <joe@perches.com> Cc: Jiri Kosina <trivial@kernel.org> Link: http://lkml.kernel.org/r/10e35243fda0b8739c89ac32a7bdf348ec4752e1.1306603968.git.joe@perches.com Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
29a6ccca38
commit
c4d017f213
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue