]> www.infradead.org Git - users/dwmw2/linux.git/commit
KVM: arm64: Free hypervisor allocations if vector slot init fails
authorSean Christopherson <seanjc@google.com>
Wed, 30 Nov 2022 23:09:01 +0000 (23:09 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 13 Jan 2023 15:47:17 +0000 (10:47 -0500)
commitd3174cf0ec9023f7704e9a43c83d451e6d925f61
tree236b0479823e4e566762ef14ab769dc0bfc048c5
parent27c87909f0377ed838b48a04c976a8402d5344d9
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().

Fixes: b881cdce77b4 ("KVM: arm64: Allocate hyp vectors statically")
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20221130230934.1014142-18-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/arm64/kvm/arm.c