Skip to content
Commit b24ede22 authored by Junaid Shahid's avatar Junaid Shahid Committed by Sean Christopherson
Browse files

kvm: x86: Do proper cleanup if kvm_x86_ops->vm_init() fails



If vm_init() fails [which can happen, for instance, if a memory
allocation fails during avic_vm_init()], we need to cleanup some
state in order to avoid resource leaks.

Signed-off-by: default avatarJunaid Shahid <junaids@google.com>
Link: https://lore.kernel.org/r/20220729224329.323378-1-junaids@google.com


Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
parent 372d0708
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment