mm/page_alloc.c: check return value of memblock_alloc_node_nopanic()
authorMike Rapoport <rppt@linux.ibm.com>
Tue, 5 Mar 2019 23:46:43 +0000 (15:46 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 6 Mar 2019 05:07:18 +0000 (21:07 -0800)
commit23a7052a5db478bdacf45bea55e6f50171f5eede
tree19a6113acea0e6a287e4653f365d8b5ff2780df6
parent8ef5cbde6dafce8f30edb53f87cb485ceace63df
mm/page_alloc.c: check return value of memblock_alloc_node_nopanic()

There are two early memory allocations that use
memblock_alloc_node_nopanic() and do not check its return value.

While this happens very early during boot and chances that the
allocation will fail are diminishing, it is still worth to have proper
checks for the allocation errors.

Link: http://lkml.kernel.org/r/1547734941-944-1-git-send-email-rppt@linux.ibm.com
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Reviewed-by: William Kucharski <william.kucharski@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page_alloc.c