Commit 23a7052
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/[email protected]
Signed-off-by: Mike Rapoport <[email protected]>
Reviewed-by: William Kucharski <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>1 parent 8ef5cbd commit 23a7052
1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6431 | 6431 | | |
6432 | 6432 | | |
6433 | 6433 | | |
6434 | | - | |
| 6434 | + | |
6435 | 6435 | | |
6436 | 6436 | | |
6437 | 6437 | | |
| 6438 | + | |
| 6439 | + | |
| 6440 | + | |
| 6441 | + | |
6438 | 6442 | | |
6439 | 6443 | | |
6440 | 6444 | | |
| |||
6664 | 6668 | | |
6665 | 6669 | | |
6666 | 6670 | | |
| 6671 | + | |
| 6672 | + | |
| 6673 | + | |
6667 | 6674 | | |
6668 | 6675 | | |
6669 | 6676 | | |
| |||
0 commit comments