]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] enable booting a NUMA system where some nodes have no memory
authorChristian Krafft <krafft@de.ibm.com>
Thu, 7 Dec 2006 04:32:41 +0000 (20:32 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Thu, 7 Dec 2006 16:39:22 +0000 (08:39 -0800)
commit7c309a64d6afa90a0a07813c836ba480aeaeca8c
treea56b235fa35c2e528752071df2a6e21a25a4e8f6
parenta120586873d3d64de93bd6d593d237e131994e58
[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 <krafft@de.ibm.com>
Cc: Christoph Lameter <clameter@engr.sgi.com>
Cc: Andy Whitcroft <apw@shadowen.org>
Cc: Martin Bligh <mbligh@google.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/bootmem.c