diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2012-12-02 11:04:14 +0100 |
---|---|---|
committer | Gleb Natapov <gleb@redhat.com> | 2012-12-02 17:37:04 +0200 |
commit | 45e3cc7d9fe69844cd12d51c511e1e98d156bbe1 (patch) | |
tree | 53fe3baee2d1ac8f94ca0ed4ef70f53ad0725370 /arch/x86/kvm/x86.c | |
parent | ba904635d498fea43fc3610983f9dc430ac324e4 (diff) | |
download | op-kernel-dev-45e3cc7d9fe69844cd12d51c511e1e98d156bbe1.zip op-kernel-dev-45e3cc7d9fe69844cd12d51c511e1e98d156bbe1.tar.gz |
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>
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r-- | arch/x86/kvm/x86.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index b0b8abe..3bdaf298 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -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)); |