The patch titled Subject: drivers/firmware/memmap.c: modify memblock_alloc to memblock_alloc_nopanic has been added to the -mm tree. Its filename is firmware-memmap-modify-memblock_alloc-to-memblock_alloc_nopanic.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/firmware-memmap-modify-memblock_alloc-to-memblock_alloc_nopanic.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/firmware-memmap-modify-memblock_alloc-to-memblock_alloc_nopanic.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: "huang.zijiang" <huang.zijiang@xxxxxxxxxx> Subject: drivers/firmware/memmap.c: modify memblock_alloc to memblock_alloc_nopanic memblock_alloc() never returns NULL because panic never returns. Link: http://lkml.kernel.org/r/1545640882-42009-1-git-send-email-huang.zijiang@xxxxxxxxxx Signed-off-by: huang.zijiang <huang.zijiang@xxxxxxxxxx> Acked-by: Mike Rapoport <rppt@xxxxxxxxxxxxx> Cc: Michal Hocko <mhocko@xxxxxxxx> Cc: Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> Cc: Michael Ellerman <mpe@xxxxxxxxxxxxxx> Cc: Yi Wang <wang.yi59@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- --- a/drivers/firmware/memmap.c~firmware-memmap-modify-memblock_alloc-to-memblock_alloc_nopanic +++ a/drivers/firmware/memmap.c @@ -333,7 +333,7 @@ int __init firmware_map_add_early(u64 st { struct firmware_map_entry *entry; - entry = memblock_alloc(sizeof(struct firmware_map_entry), + entry = memblock_alloc_nopanic(sizeof(struct firmware_map_entry), SMP_CACHE_BYTES); if (WARN_ON(!entry)) return -ENOMEM; _ Patches currently in -mm which might be from huang.zijiang@xxxxxxxxxx are firmware-memmap-modify-memblock_alloc-to-memblock_alloc_nopanic.patch