]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6f116af221eed670757aaf6bb9bd0c44ce73d6f1
tree19a6113acea0e6a287e4653f365d8b5ff2780df6
parent5dca8e668617615b0421b6da2b2b82bf40d160c4
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