aboutsummaryrefslogtreecommitdiffstats
path: root/virt/kvm/kvm_main.c
diff options
context:
space:
mode:
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>2009-08-03 05:10:06 -0400
committerAvi Kivity <avi@redhat.com>2009-09-10 01:33:17 -0400
commitaed665f7bbacf09121370bc7e21b4cc7d55fc5ef (patch)
tree4774c5e7aa4e55a21c0c819529f424f7c3ee5003 /virt/kvm/kvm_main.c
parent1444885a045fe3b1905a14ea1b52540bf556578b (diff)
KVM: fix kvm_init() error handling
Remove debugfs file if kvm_arch_init() return error Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'virt/kvm/kvm_main.c')
-rw-r--r--virt/kvm/kvm_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index 646cf2ae32fd..4470251ddc53 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -2791,8 +2791,8 @@ out_free_0:
2791 __free_page(bad_page); 2791 __free_page(bad_page);
2792out: 2792out:
2793 kvm_arch_exit(); 2793 kvm_arch_exit();
2794 kvm_exit_debug();
2795out_fail: 2794out_fail:
2795 kvm_exit_debug();
2796 return r; 2796 return r;
2797} 2797}
2798EXPORT_SYMBOL_GPL(kvm_init); 2798EXPORT_SYMBOL_GPL(kvm_init);