Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit afc2f792 authored by Wei Yongjun's avatar Wei Yongjun Committed by Gleb Natapov
Browse files

KVM: add missing misc_deregister() on error in kvm_init()



Add the missing misc_deregister() before return from kvm_init()
in the debugfs init error handling case.

Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarGleb Natapov <gleb@redhat.com>
parent f722406f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3181,6 +3181,7 @@ int kvm_init(void *opaque, unsigned vcpu_size, unsigned vcpu_align,

out_undebugfs:
	unregister_syscore_ops(&kvm_syscore_ops);
	misc_deregister(&kvm_dev);
out_unreg:
	kvm_async_pf_deinit();
out_free: