Skip to content
Commit 458f212e authored by Yang Zhang's avatar Yang Zhang Committed by Gleb Natapov
Browse files

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: default avatarYang Zhang <yang.z.zhang@Intel.com>
Signed-off-by: default avatarGleb Natapov <gleb@redhat.com>
parent 05e07f9b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment