KVM: fix kvm_init() error handling
[safe/jmp/linux-2.6] / virt / kvm / kvm_main.c
index 646cf2a..4470251 100644 (file)
@@ -2791,8 +2791,8 @@ out_free_0:
        __free_page(bad_page);
 out:
        kvm_arch_exit();
-       kvm_exit_debug();
 out_fail:
+       kvm_exit_debug();
        return r;
 }
 EXPORT_SYMBOL_GPL(kvm_init);