The patch titled Subject: mm/sparse: add the missing sparse_buffer_fini() in error branch has been added to the -mm tree. Its filename is mm-sparse-add-the-missing-sparse_buffer_fini-in-error-branch.patch This patch should soon appear at https://ozlabs.org/~akpm/mmots/broken-out/mm-sparse-add-the-missing-sparse_buffer_fini-in-error-branch.patch and later at https://ozlabs.org/~akpm/mmotm/broken-out/mm-sparse-add-the-missing-sparse_buffer_fini-in-error-branch.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/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Wang Wensheng <wangwensheng4@xxxxxxxxxx> Subject: mm/sparse: add the missing sparse_buffer_fini() in error branch sparse_buffer_init() and sparse_buffer_fini() should appear in pair, or a WARN issue would be through the next time sparse_buffer_init() runs. Add the missing sparse_buffer_fini() in error branch. Link: https://lkml.kernel.org/r/20210325113155.118574-1-wangwensheng4@xxxxxxxxxx Fixes: 85c77f791390 ("mm/sparse: add new sparse_init_nid() and sparse_init()") Signed-off-by: Wang Wensheng <wangwensheng4@xxxxxxxxxx> Reviewed-by: David Hildenbrand <david@xxxxxxxxxx> Reviewed-by: Oscar Salvador <osalvador@xxxxxxx> Cc: Pavel Tatashin <pasha.tatashin@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/sparse.c | 1 + 1 file changed, 1 insertion(+) --- a/mm/sparse.c~mm-sparse-add-the-missing-sparse_buffer_fini-in-error-branch +++ a/mm/sparse.c @@ -547,6 +547,7 @@ static void __init sparse_init_nid(int n pr_err("%s: node[%d] memory map backing failed. Some memory will not be available.", __func__, nid); pnum_begin = pnum; + sparse_buffer_fini(); goto failed; } check_usemap_section_nr(nid, usage); _ Patches currently in -mm which might be from wangwensheng4@xxxxxxxxxx are mm-sparse-add-the-missing-sparse_buffer_fini-in-error-branch.patch