diff options
author | Xiao Guangrong <xiaoguangrong@cn.fujitsu.com> | 2009-08-03 17:10:06 +0800 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-09-10 08:33:17 +0300 |
commit | aed665f7bbacf09121370bc7e21b4cc7d55fc5ef (patch) | |
tree | 4774c5e7aa4e55a21c0c819529f424f7c3ee5003 /virt | |
parent | 1444885a045fe3b1905a14ea1b52540bf556578b (diff) | |
download | linux-next-aed665f7bbacf09121370bc7e21b4cc7d55fc5ef.tar.gz |
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')
-rw-r--r-- | virt/kvm/kvm_main.c | 2 |
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: __free_page(bad_page); out: kvm_arch_exit(); - kvm_exit_debug(); out_fail: + kvm_exit_debug(); return r; } EXPORT_SYMBOL_GPL(kvm_init); |