diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-05-05 20:03:40 +0800 |
---|---|---|
committer | Gleb Natapov <gleb@redhat.com> | 2013-05-12 12:06:24 +0300 |
commit | afc2f792cdcb67f4257f0e68d10ee4a7b7eae57a (patch) | |
tree | 452ef08d80d30463578caf2977d3d75eb1d2e754 | |
parent | f722406faae2d073cc1d01063d1123c35425939e (diff) | |
download | linux-afc2f792cdcb67f4257f0e68d10ee4a7b7eae57a.tar.bz2 |
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>
-rw-r--r-- | virt/kvm/kvm_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 302681c4aa44..b547a1ceecbc 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: |