KVM: x86: fix memory leak in vmx_init
authorYang Zhang <yang.z.zhang@Intel.com>
Mon, 8 Apr 2013 07:26:33 +0000 (15:26 +0800)
committerGleb Natapov <gleb@redhat.com>
Mon, 8 Apr 2013 07:56:08 +0000 (10:56 +0300)
commit458f212e36b291067b74c0cac2bdcf8278817ee7
treedd3aca2ad7429b317d1bbb083d1fed68c5bc082e
parent05e07f9bdb0ea3c1c52029e6c4db77c9f7c92a5c
KVM: x86: fix memory leak in vmx_init

Free vmx_msr_bitmap_longmode_x2apic and vmx_msr_bitmap_longmode if
kvm_init() fails.

Signed-off-by: Yang Zhang <yang.z.zhang@Intel.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
arch/x86/kvm/vmx.c