diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2012-12-02 10:04:14 (GMT) |
---|---|---|
committer | Gleb Natapov <gleb@redhat.com> | 2012-12-02 15:37:04 (GMT) |
commit | 45e3cc7d9fe69844cd12d51c511e1e98d156bbe1 (patch) | |
tree | 53fe3baee2d1ac8f94ca0ed4ef70f53ad0725370 /arch/x86/kvm | |
parent | ba904635d498fea43fc3610983f9dc430ac324e4 (diff) | |
download | linux-fsl-qoriq-45e3cc7d9fe69844cd12d51c511e1e98d156bbe1.tar.xz |
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')
-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..3bdaf29 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)); |