提交 aed665f7 编写于 作者: X Xiao Guangrong 提交者: Avi Kivity

KVM: fix kvm_init() error handling

Remove debugfs file if kvm_arch_init() return error
Signed-off-by: NXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: NAvi Kivity <avi@redhat.com>
上级 1444885a
......@@ -2791,8 +2791,8 @@ int kvm_init(void *opaque, unsigned int vcpu_size,
__free_page(bad_page);
out:
kvm_arch_exit();
kvm_exit_debug();
out_fail:
kvm_exit_debug();
return r;
}
EXPORT_SYMBOL_GPL(kvm_init);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册