aboutsummaryrefslogtreecommitdiff
path: root/virt/kvm
diff options
context:
space:
mode:
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>2009-08-03 17:10:06 +0800
committerAvi Kivity <avi@redhat.com>2009-09-10 08:33:17 +0300
commitaed665f7bbacf09121370bc7e21b4cc7d55fc5ef (patch)
tree4774c5e7aa4e55a21c0c819529f424f7c3ee5003 /virt/kvm
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')
-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 646cf2ae32f..4470251ddc5 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -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);