diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2009-06-11 04:58:01 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2009-06-11 04:58:01 -0400 |
commit | 4894e4aca82aca927d0404ce61f021f790de4b1e (patch) | |
tree | bbe0d083829f5858295298f188d885367cf4b1f6 /virt | |
parent | 05e882f890038c702a4f15d385135d03cf74ad48 (diff) | |
parent | 07a2039b8eb0af4ff464efd3dfd95de5c02648c6 (diff) |
Merge commit 'v2.6.30' into next
Diffstat (limited to 'virt')
-rw-r--r-- | virt/kvm/kvm_main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 1ecbe2391c8b..4d0dd390aa50 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c | |||
@@ -2301,10 +2301,11 @@ int kvm_init(void *opaque, unsigned int vcpu_size, | |||
2301 | 2301 | ||
2302 | bad_pfn = page_to_pfn(bad_page); | 2302 | bad_pfn = page_to_pfn(bad_page); |
2303 | 2303 | ||
2304 | if (!alloc_cpumask_var(&cpus_hardware_enabled, GFP_KERNEL)) { | 2304 | if (!zalloc_cpumask_var(&cpus_hardware_enabled, GFP_KERNEL)) { |
2305 | r = -ENOMEM; | 2305 | r = -ENOMEM; |
2306 | goto out_free_0; | 2306 | goto out_free_0; |
2307 | } | 2307 | } |
2308 | cpumask_clear(cpus_hardware_enabled); | ||
2308 | 2309 | ||
2309 | r = kvm_arch_hardware_setup(); | 2310 | r = kvm_arch_hardware_setup(); |
2310 | if (r < 0) | 2311 | if (r < 0) |