KVM: x86: disallow KVM_{SET,GET}_LAPIC without allocated in-kernel lapic
authorMarcelo Tosatti <mtosatti@redhat.com>
Thu, 29 Oct 2009 15:44:16 +0000 (13:44 -0200)
committerAvi Kivity <avi@redhat.com>
Thu, 3 Dec 2009 07:32:23 +0000 (09:32 +0200)
commit2204ae3c96e9a1fed50f7ee19ce092e69d7dfe82
tree8cf0b2bb779c833b401b96e46c26f444ab70955d
parent3ddea128ad75bd33e88780fe44f44c3717369b98
KVM: x86: disallow KVM_{SET,GET}_LAPIC without allocated in-kernel lapic

Otherwise kvm might attempt to dereference a NULL pointer.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/x86.c