From: Ingo Molnar Date: Mon, 12 Feb 2007 08:54:42 +0000 (-0800) Subject: [PATCH] kvm: fix vcpu freeing bug X-Git-Tag: v2.6.21-rc1~274^2~53 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e8ba6fba5050ec11bba90c8622aa2ed95ff711f;p=pandora-kernel.git [PATCH] kvm: fix vcpu freeing bug vcpu_load() can return NULL and it sometimes does in failure paths (for example when the userspace ABI version is too old) - causing a preemption count underflow in the ->vcpu_free() later on. So check for NULL. Signed-off-by: Ingo Molnar Signed-off-by: Avi Kivity Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed