Commit 391c34fe authored by Sean Christopherson's avatar Sean Christopherson Committed by Lee Jones
Browse files

UPSTREAM: KVM: arm64: Free hypervisor allocations if vector slot init fails



Teardown hypervisor mode if vector slot setup fails in order to avoid
leaking any allocations done by init_hyp_mode().

Bug: 254441685
Fixes: b881cdce ("KVM: arm64: Allocate hyp vectors statically")
Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
Message-Id: <20221130230934.1014142-18-seanjc@google.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 6baaeda8)
Signed-off-by: default avatarLee Jones <joneslee@google.com>
Change-Id: Id20a219325d0ae7882b7e910f460fc8b5c05f839
parent 2f985832
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment