diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2011-04-13 01:27:55 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-05-11 13:57:08 +0200 |
commit | be6d05cfdf1f2ddbdc367a6433d8eac49d6bfe6f (patch) | |
tree | 4e20ff818c63f8b9a7c7b84d101f5c669eee454a /arch/x86/kvm/emulate.c | |
parent | KVM: emulator: do not needlesly sync registers from emulator ctxt to vcpu (diff) | |
download | linux-be6d05cfdf1f2ddbdc367a6433d8eac49d6bfe6f.tar.xz linux-be6d05cfdf1f2ddbdc367a6433d8eac49d6bfe6f.zip |
KVM: VMX: Ensure that vmx_create_vcpu always returns proper error
In case certain allocations fail, vmx_create_vcpu may return 0 as error
instead of a negative value encoded via ERR_PTR. This causes a NULL
pointer dereferencing later on in kvm_vm_ioctl_vcpu_create.
Reported-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/x86/kvm/emulate.c')
0 files changed, 0 insertions, 0 deletions