]> err.no Git - linux-2.6/commit
[PATCH] KVM: Fix oops on oom
authorAvi Kivity <avi@qumranet.com>
Sat, 30 Dec 2006 00:49:58 +0000 (16:49 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Sat, 30 Dec 2006 18:56:44 +0000 (10:56 -0800)
commit55a54f79e091d52c3c2835985c347ea4d2e1c21f
treead47898c216852e053806ee0fd6518380f23c9ab
parentc68876fd2846d2aaf9770276db244b46f2bf52c7
[PATCH] KVM: Fix oops on oom

__free_page() doesn't like a NULL argument, so check before calling it.  A
NULL can only happen if memory is exhausted during allocation of a memory
slot.

Signed-off-by: Avi Kivity <avi@qumranet.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/kvm/kvm_main.c