The patch titled Subject: mm/memblock.c:memblock_add_range(): if nr_new is 0 just return has been added to the -mm tree. Its filename is mm-memblock-if-nr_new-is-0-just-return.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-memblock-if-nr_new-is-0-just-return.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-memblock-if-nr_new-is-0-just-return.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: nimisolo <nimisolo@xxxxxxxxx> Subject: mm/memblock.c:memblock_add_range(): if nr_new is 0 just return If nr_new is 0 which means there's no region would be added, so just return to the caller. Signed-off-by: nimisolo <nimisolo@xxxxxxxxx> Cc: Alexander Kuleshov <kuleshovmail@xxxxxxxxx> Cc: Pekka Enberg <penberg@xxxxxxxxxx> Cc: Tony Luck <tony.luck@xxxxxxxxx> Cc: Mel Gorman <mgorman@xxxxxxx> Cc: Tang Chen <tangchen@xxxxxxxxxxxxxx> Cc: Wei Yang <weiyang@xxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/memblock.c | 3 +++ 1 file changed, 3 insertions(+) diff -puN mm/memblock.c~mm-memblock-if-nr_new-is-0-just-return mm/memblock.c --- a/mm/memblock.c~mm-memblock-if-nr_new-is-0-just-return +++ a/mm/memblock.c @@ -585,6 +585,9 @@ repeat: nid, flags); } + if (!nr_new) + return 0; + /* * If this was the first round, resize array and repeat for actual * insertions; otherwise, merge and return. _ Patches currently in -mm which might be from nimisolo@xxxxxxxxx are mm-memblock-if-nr_new-is-0-just-return.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