The patch titled
sparsemem: sparse_add_one_section() may fail to allocate memory
has been removed from the -mm tree. Its filename was
sparsemem-sparse_add_one_section-may-fail-to-allocate-memory.patch
This patch was dropped because it is obsolete
------------------------------------------------------
Subject: sparsemem: sparse_add_one_section() may fail to allocate memory
From: Geert Uytterhoeven <[EMAIL PROTECTED]>
FIXME There are still some possible memory leaks in sparse_add_one_section():
- usemap is never deallocated
- __kfree_section_memmap() is a not yet implemented dummy
Signed-off-by: Geert Uytterhoeven <[EMAIL PROTECTED]>
Cc: Milton Miller <[EMAIL PROTECTED]>
Cc: Geoff Levand <[EMAIL PROTECTED]>
Cc: Christoph Lameter <[EMAIL PROTECTED]>
Cc: Andy Whitcroft <[EMAIL PROTECTED]>
Cc: Yasunori Goto <[EMAIL PROTECTED]>
Cc: Dave Hansen <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
---
mm/sparse.c | 3 +++
1 file changed, 3 insertions(+)
diff -puN
mm/sparse.c~sparsemem-sparse_add_one_section-may-fail-to-allocate-memory
mm/sparse.c
--- a/mm/sparse.c~sparsemem-sparse_add_one_section-may-fail-to-allocate-memory
+++ a/mm/sparse.c
@@ -391,6 +391,9 @@ int sparse_add_one_section(struct zone *
*/
sparse_index_init(section_nr, pgdat->node_id);
memmap = kmalloc_section_memmap(section_nr, pgdat->node_id, nr_pages);
+ if (!memmap)
+ return -ENOMEM;
+
usemap = __kmalloc_section_usemap();
pgdat_resize_lock(pgdat, &flags);
_
Patches currently in -mm which might be from [EMAIL PROTECTED] are
sparsemem-sparse_add_one_section-may-fail-to-allocate-memory.patch
git-kbuild.patch
time-fold-__get_realtime_clock_ts-into-getnstimeofday.patch
ps3-checkpatch-drivers-ps3-ps3-sys-managerc.patch
ps3-checkpatch-drivers-ps3-ps3-vuartc.patch
-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html