From: Christian Krafft Date: Thu, 7 Dec 2006 04:32:41 +0000 (-0800) Subject: [PATCH] enable booting a NUMA system where some nodes have no memory X-Git-Tag: v2.6.20-rc1~145^2^2~328 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c309a64d6afa90a0a07813c836ba480aeaeca8c;p=pandora-kernel.git [PATCH] enable booting a NUMA system where some nodes have no memory When booting a NUMA system with nodes that have no memory (eg by limiting memory), bootmem_alloc_core tried to find pages in an uninitialized bootmem_map. This caused a null pointer access. This fix adds a check, so that NULL is returned. That will enable the caller (bootmem_alloc_nopanic) to alloc memory on other without a panic. Signed-off-by: Christian Krafft Cc: Christoph Lameter Cc: Andy Whitcroft Cc: Martin Bligh Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed