kvm: vmx: fix oops with explicit flexpriority=0 option
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 30 Jan 2015 15:18:49 +0000 (16:18 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 30 Jan 2015 15:18:49 +0000 (16:18 +0100)
commitad15a296471d40703be647b11ddc56df0f1c0cdd
tree5ec3cbf964598a222f228491ae22d6be7404e235
parent8a395363e2f9f52ec44a1cd892881e8ee1a53269
kvm: vmx: fix oops with explicit flexpriority=0 option

A function pointer was not NULLed, causing kvm_vcpu_reload_apic_access_page to
go down the wrong path and OOPS when doing put_page(NULL).

This did not happen on old processors, only when setting the module option
explicitly.

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