From: Xiao Guangrong Date: Mon, 3 Aug 2009 09:10:06 +0000 (+0800) Subject: KVM: fix kvm_init() error handling X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=aed665f7bbacf09121370bc7e21b4cc7d55fc5ef;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git KVM: fix kvm_init() error handling Remove debugfs file if kvm_arch_init() return error Signed-off-by: Xiao Guangrong Signed-off-by: Avi Kivity --- 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);