Commit c4d017f21328c269deba3c7acde873204fe595b5

Authored by Joe Perches
Committed by Ingo Molnar
1 parent 29a6ccca38

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>

Showing 1 changed file with 1 additions and 2 deletions Side-by-side Diff

arch/x86/mm/pageattr-test.c
... ... @@ -123,12 +123,11 @@
123 123 if (print)
124 124 printk(KERN_INFO "CPA self-test:\n");
125 125  
126   - bm = vmalloc((max_pfn_mapped + 7) / 8);
  126 + bm = vzalloc((max_pfn_mapped + 7) / 8);
127 127 if (!bm) {
128 128 printk(KERN_ERR "CPA Cannot vmalloc bitmap\n");
129 129 return -ENOMEM;
130 130 }
131   - memset(bm, 0, (max_pfn_mapped + 7) / 8);
132 131  
133 132 failed += print_split(&sa);
134 133 srandom32(100);