kvm: x86: fix kvm_apic_has_events to check for NULL pointer
authorPaolo Bonzini <pbonzini@redhat.com>
Sat, 30 May 2015 12:31:24 +0000 (14:31 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Jun 2015 08:16:17 +0000 (10:16 +0200)
commitce40cd3fc7fa40a6119e5fe6c0f2bc0eb4541009
tree346441e01c7eda7cee7a630a51c81cf0c9ba7c5c
parente194bbdf362ba7d53cfd23ba24f1a7c90ef69a74
kvm: x86: fix kvm_apic_has_events to check for NULL pointer

Malicious (or egregiously buggy) userspace can trigger it, but it
should never happen in normal operation.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/lapic.h