diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 646cf2ae32fd271a5bb788e44d7bb83636149e28..4470251ddc5311243cf29922293189d14d534684 100644 --- a/virt/kvm/kvm_main.c +++ b/virt/kvm/kvm_main.c @@ -2791,8 +2791,8 @@ int kvm_init(void *opaque, unsigned int vcpu_size, __free_page(bad_page); out: kvm_arch_exit(); - kvm_exit_debug(); out_fail: + kvm_exit_debug(); return r; } EXPORT_SYMBOL_GPL(kvm_init);