The patch titled sparsemem: fix sparse_index_init return check has been added to the -mm tree. Its filename is mm-sparsec-improve-the-error-handling-for-sparse_add_one_section-fix.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: sparsemem: fix sparse_index_init return check From: Geoff Levand <geoffrey.levand@xxxxxxxxxxx> sparse_index_init() returns -EEXIST to indicate the index has already been created. Exclude this from the error check on the return value. Signed-off-by: Geoff Levand <geoffrey.levand@xxxxxxxxxxx> Cc: Christoph Lameter <clameter@xxxxxxx> Cc: Dave Hansen <haveblue@xxxxxxxxxx> Cc: Rik van Riel <riel@xxxxxxxxxx> Cc: Yasunori Goto <y-goto@xxxxxxxxxxxxxx> Cc: Andy Whitcroft <apw@xxxxxxxxxxxx> Cc: WANG Cong <xiyou.wangcong@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/sparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN mm/sparse.c~mm-sparsec-improve-the-error-handling-for-sparse_add_one_section-fix mm/sparse.c --- a/mm/sparse.c~mm-sparsec-improve-the-error-handling-for-sparse_add_one_section-fix +++ a/mm/sparse.c @@ -384,7 +384,7 @@ int sparse_add_one_section(struct zone * * plus, it does a kmalloc */ ret = sparse_index_init(section_nr, pgdat->node_id); - if (ret < 0) + if (ret < 0 && ret != -EEXIST) return ret; memmap = kmalloc_section_memmap(section_nr, pgdat->node_id, nr_pages); if (!memmap) _ Patches currently in -mm which might be from geoffrey.levand@xxxxxxxxxxx are sparsemem-make-sparsemem_vmemmap-selectable.patch git-powerpc.patch mm-sparsec-improve-the-error-handling-for-sparse_add_one_section-fix.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html