Skip to content

Commit

Permalink
KVM: x86: Fix uninitialized return code
Browse files Browse the repository at this point in the history
This is a regression caused by 1859541.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
  • Loading branch information
Jan Kiszka authored and Gleb Natapov committed Dec 2, 2012
1 parent ba90463 commit 45e3cc7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/x86/kvm/x86.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 45e3cc7

Please sign in to comment.