KVM: x86: Propagate fpu_alloc errors
Memory allocation may fail. Propagate such errors. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Reviewed-by: Sheng Yang <sheng@linux.intel.com> Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
@@ -2659,7 +2659,9 @@ static int vmx_vcpu_reset(struct kvm_vcpu *vcpu)
|
||||
msr |= MSR_IA32_APICBASE_BSP;
|
||||
kvm_set_apic_base(&vmx->vcpu, msr);
|
||||
|
||||
fx_init(&vmx->vcpu);
|
||||
ret = fx_init(&vmx->vcpu);
|
||||
if (ret != 0)
|
||||
goto out;
|
||||
|
||||
seg_setup(VCPU_SREG_CS);
|
||||
/*
|
||||
|
Reference in New Issue
Block a user