Skip to content

Commit

Permalink
KVM: fix kvm_init() error handling
Browse files Browse the repository at this point in the history
Remove debugfs file if kvm_arch_init() return error

Signed-off-by: Xiao Guangrong <[email protected]>
Signed-off-by: Avi Kivity <[email protected]>
  • Loading branch information
Xiao Guangrong authored and avikivity committed Sep 10, 2009
1 parent 1444885 commit aed665f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virt/kvm/kvm_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit aed665f

Please sign in to comment.