Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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@zte.com.cn
Signed-off-by: huang.zijiang <huang.zijiang@zte.com.cn>
Acked-by: Mike Rapoport <rppt@linux.ibm.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Yi Wang <wang.yi59@zte.com.cn>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

huang.zijiang and committed by
Linus Torvalds
05391772 6862d2fc

+1 -1
+1 -1
drivers/firmware/memmap.c
··· 333 333 { 334 334 struct firmware_map_entry *entry; 335 335 336 - entry = memblock_alloc(sizeof(struct firmware_map_entry), 336 + entry = memblock_alloc_nopanic(sizeof(struct firmware_map_entry), 337 337 SMP_CACHE_BYTES); 338 338 if (WARN_ON(!entry)) 339 339 return -ENOMEM;