diff options
author | Miaohe Lin <linmiaohe@huawei.com> | 2020-02-21 22:04:46 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-02-21 18:05:44 +0100 |
commit | 23520b2def95205f132e167cf5b25c609975e959 (patch) | |
tree | 7403554d511783e315f74b9495b093b6610a32c9 /arch/x86/kvm/svm.c | |
parent | a4443267800af240072280c44521caab61924e55 (diff) | |
download | lwn-23520b2def95205f132e167cf5b25c609975e959.tar.gz lwn-23520b2def95205f132e167cf5b25c609975e959.zip |
KVM: apic: avoid calculating pending eoi from an uninitialized val
When pv_eoi_get_user() fails, 'val' may remain uninitialized and the return
value of pv_eoi_get_pending() becomes random. Fix the issue by initializing
the variable.
Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/svm.c')
0 files changed, 0 insertions, 0 deletions