The patch titled mm/sparse.c: check the return value of sparse_index_alloc() has been added to the -mm tree. Its filename is mm-sparsec-check-the-return-value-of-sparse_index_alloc.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: mm/sparse.c: check the return value of sparse_index_alloc() From: WANG Cong <xiyou.wangcong@xxxxxxxxx> Since sparse_index_alloc() can return NULL on memory allocation failure, we must deal with the failure condition when calling it. Signed-off-by: WANG Cong <xiyou.wangcong@xxxxxxxxx> Cc: Christoph Lameter <clameter@xxxxxxx> Cc: Rik van Riel <riel@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/sparse.c | 2 ++ 1 file changed, 2 insertions(+) diff -puN mm/sparse.c~mm-sparsec-check-the-return-value-of-sparse_index_alloc mm/sparse.c --- a/mm/sparse.c~mm-sparsec-check-the-return-value-of-sparse_index_alloc +++ a/mm/sparse.c @@ -83,6 +83,8 @@ static int __meminit sparse_index_init(u return -EEXIST; section = sparse_index_alloc(nid); + if (!section) + return -ENOMEM; /* * This lock keeps two different sections from * reallocating for the same index _ Patches currently in -mm which might be from xiyou.wangcong@xxxxxxxxx are uml-build-fix.patch mm-sparsec-check-the-return-value-of-sparse_index_alloc.patch cscope-build-warning.patch uml-code-tidying-under-arch-um-os-linux.patch uml-const-and-other-tidying.patch time-fix-sysfs_show_availablecurrent_clocksources-buffer-overflow-problem.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