kvm: kvm_destroy_vm_debugfs(): check debugfs_stat_data pointer
authorLuiz Capitulino <lcapitulino@redhat.com>
Wed, 7 Sep 2016 18:47:21 +0000 (14:47 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 16 Sep 2016 14:57:46 +0000 (16:57 +0200)
commit9d5a1dcebfbe0e421412fcf5ab86d30e2e65bab4
treecb065ab87a144924d42ac60bf90a675d00731fef
parent3e3f50262eb441d0fd1de4dce06739e9c0fe7c61
kvm: kvm_destroy_vm_debugfs(): check debugfs_stat_data pointer

This make it possible to call kvm_destroy_vm_debugfs() from
kvm_create_vm_debugfs() in error conditions.

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/kvm_main.c