diff options
-rw-r--r-- | arch/x86/mm/pageattr-test.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/mm/pageattr-test.c b/arch/x86/mm/pageattr-test.c index e1d106909218..b0086567271c 100644 --- a/arch/x86/mm/pageattr-test.c +++ b/arch/x86/mm/pageattr-test.c | |||
@@ -123,12 +123,11 @@ static int pageattr_test(void) | |||
123 | if (print) | 123 | if (print) |
124 | printk(KERN_INFO "CPA self-test:\n"); | 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 | if (!bm) { | 127 | if (!bm) { |
128 | printk(KERN_ERR "CPA Cannot vmalloc bitmap\n"); | 128 | printk(KERN_ERR "CPA Cannot vmalloc bitmap\n"); |
129 | return -ENOMEM; | 129 | return -ENOMEM; |
130 | } | 130 | } |
131 | memset(bm, 0, (max_pfn_mapped + 7) / 8); | ||
132 | 131 | ||
133 | failed += print_split(&sa); | 132 | failed += print_split(&sa); |
134 | srandom32(100); | 133 | srandom32(100); |