summaryrefslogtreecommitdiffstats
path: root/virt/kvm
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-05-05 20:03:40 +0800
committerGleb Natapov <gleb@redhat.com>2013-05-12 12:06:24 +0300
commitafc2f792cdcb67f4257f0e68d10ee4a7b7eae57a (patch)
tree452ef08d80d30463578caf2977d3d75eb1d2e754 /virt/kvm
parentf722406faae2d073cc1d01063d1123c35425939e (diff)
downloadop-kernel-dev-afc2f792cdcb67f4257f0e68d10ee4a7b7eae57a.zip
op-kernel-dev-afc2f792cdcb67f4257f0e68d10ee4a7b7eae57a.tar.gz
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: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Gleb Natapov <gleb@redhat.com>
Diffstat (limited to 'virt/kvm')
-rw-r--r--virt/kvm/kvm_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index 302681c..b547a1c 100644
--- 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:
OpenPOWER on IntegriCloud