[PATCH] sparsemem interaction with memory add bug fixes
authorMike Kravetz <mjkravetz@verizon.net>
Mon, 1 May 2006 19:16:09 +0000 (12:16 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 2 May 2006 01:17:46 +0000 (18:17 -0700)
commit46a66eecdf7bc12562ecb492297447ed0e1ecf59
treeb758b51763c2365130a2a58547fa0bc30d71cdc8
parent2c43630fb0ff3f01c29367248ffa4a851e2c9b34
[PATCH] sparsemem interaction with memory add bug fixes

This patch fixes two bugs with the way sparsemem interacts with memory add.
They are:

- memory leak if memmap for section already exists

- calling alloc_bootmem_node() after boot

These bugs were discovered and a first cut at the fixes were provided by
Arnd Bergmann <arnd@arndb.de> and Joel Schopp <jschopp@us.ibm.com>.

Signed-off-by: Mike Kravetz <kravetz@us.ibm.com>
Signed-off-by: Joel Schopp <jschopp@austin.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/sparse.c