aboutsummaryrefslogtreecommitdiffstats
path: root/fs/crypto
diff options
context:
space:
mode:
authorJim Mattson <jmattson@google.com>2019-10-25 13:34:58 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2019-10-31 12:13:16 +0100
commita97b0e773e492ae319a7e981e98962a1060215f9 (patch)
tree1832cc63a277b8af0ce0d7c254aaf7042f86bbb9 /fs/crypto
parentkvm: Allocate memslots and buses before calling kvm_arch_init_vm (diff)
downloadlinux-dev-a97b0e773e492ae319a7e981e98962a1060215f9.tar.xz
linux-dev-a97b0e773e492ae319a7e981e98962a1060215f9.zip
kvm: call kvm_arch_destroy_vm if vm creation fails
In kvm_create_vm(), if we've successfully called kvm_arch_init_vm(), but then fail later in the function, we need to call kvm_arch_destroy_vm() so that it can do any necessary cleanup (like freeing memory). Fixes: 44a95dae1d229a ("KVM: x86: Detect and Initialize AVIC support") Signed-off-by: John Sperbeck <jsperbeck@google.com> Signed-off-by: Jim Mattson <jmattson@google.com> Reviewed-by: Junaid Shahid <junaids@google.com> [Remove dependency on "kvm: Don't clear reference count on kvm_create_vm() error path" which was not committed. - Paolo] Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'fs/crypto')
0 files changed, 0 insertions, 0 deletions