git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ae441e
)
KVM: VMX: Ensure that vmx_create_vcpu always returns proper error
author
Jan Kiszka
<jan.kiszka@siemens.com>
Tue, 12 Apr 2011 23:27:55 +0000
(
01:27
+0200)
committer
Avi Kivity
<avi@redhat.com>
Wed, 11 May 2011 11:57:08 +0000
(07:57 -0400)
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>
arch/x86/kvm/vmx.c
patch
|
blob
|
history
diff --cc
arch/x86/kvm/vmx.c
Simple merge