projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97ce45b
)
KVM: add missing misc_deregister() on error in kvm_init()
author
Wei Yongjun
<yongjun_wei@trendmicro.com.cn>
Sun, 5 May 2013 12:03:40 +0000
(20:03 +0800)
committer
Christoffer Dall
<christoffer.dall@linaro.org>
Thu, 2 Oct 2014 15:10:21 +0000
(17:10 +0200)
Add the missing misc_deregister() before return from kvm_init()
in the debugfs init error handling case.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
(cherry picked from commit
afc2f792cdcb67f4257f0e68d10ee4a7b7eae57a
)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
virt/kvm/kvm_main.c
patch
|
blob
|
history
diff --git
a/virt/kvm/kvm_main.c
b/virt/kvm/kvm_main.c
index 302681c4aa4465bb21b69524d7c0d3a5341f4a4e..b547a1ceecbca411140663db554b2afabcf04a34 100644
(file)
--- a/
virt/kvm/kvm_main.c
+++ b/
virt/kvm/kvm_main.c
@@
-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: