summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arch/x86/kvm/mmu/mmu.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/arch/x86/kvm/mmu/mmu.c b/arch/x86/kvm/mmu/mmu.c
index 26f0c82bf801..7fae1c395cbd 100644
--- a/arch/x86/kvm/mmu/mmu.c
+++ b/arch/x86/kvm/mmu/mmu.c
@@ -1101,13 +1101,11 @@ static int mmu_topup_memory_caches(struct kvm_vcpu *vcpu)
r = mmu_topup_memory_cache(&vcpu->arch.mmu_pte_list_desc_cache,
8 + PTE_PREFETCH_NUM);
if (r)
- goto out;
+ return r;
r = mmu_topup_memory_cache(&vcpu->arch.mmu_page_cache, 8);
if (r)
- goto out;
- r = mmu_topup_memory_cache(&vcpu->arch.mmu_page_header_cache, 4);
-out:
- return r;
+ return r;
+ return mmu_topup_memory_cache(&vcpu->arch.mmu_page_header_cache, 4);
}
static void mmu_free_memory_caches(struct kvm_vcpu *vcpu)