KVM: x86: Fix uninitialized return code
This is a regression caused by 18595411a7
.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
This commit is contained in:
parent
ba904635d4
commit
45e3cc7d9f
1 changed files with 1 additions and 0 deletions
|
@ -3006,6 +3006,7 @@ long kvm_arch_vcpu_ioctl(struct file *filp,
|
|||
break;
|
||||
}
|
||||
case KVM_SET_LAPIC: {
|
||||
r = -EINVAL;
|
||||
if (!vcpu->arch.apic)
|
||||
goto out;
|
||||
u.lapic = memdup_user(argp, sizeof(*u.lapic));
|
||||
|
|
Loading…
Reference in a new issue