Message ID | 20151207144921.964712724@linuxfoundation.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
--- a/arch/mips/kvm/mips.c +++ b/arch/mips/kvm/mips.c @@ -278,7 +278,7 @@ struct kvm_vcpu *kvm_arch_vcpu_create(st if (!gebase) { err = -ENOMEM; - goto out_free_cpu; + goto out_uninit_cpu; } kvm_debug("Allocated %d bytes for KVM Exception Handlers @ %p\n", ALIGN(size, PAGE_SIZE), gebase); @@ -342,6 +342,9 @@ struct kvm_vcpu *kvm_arch_vcpu_create(st out_free_gebase: kfree(gebase); +out_uninit_cpu: + kvm_vcpu_uninit(vcpu); + out_free_cpu: kfree(vcpu);