mm/page_alloc.c: check return value of memblock_alloc_node_nopanic()
authorMike Rapoport <rppt@linux.ibm.com>
Thu, 7 Feb 2019 00:57:05 +0000 (11:57 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 7 Feb 2019 00:57:05 +0000 (11:57 +1100)
commitc3f41d4ff362ec5274127848e8fe80618267f31d
treeb4be3e8ed976de4840b87f632ec55956b4ba59d6
parent3afe5c85984bef0eba8b7762f70200512e2f2b04
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: Stephen Rothwell <sfr@canb.auug.org.au>
mm/page_alloc.c