diff options
Diffstat (limited to 'mm/nobootmem.c')
-rw-r--r-- | mm/nobootmem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/nobootmem.c b/mm/nobootmem.c index 6e93dc7f2586..5b0eb06ecb4e 100644 --- a/mm/nobootmem.c +++ b/mm/nobootmem.c | |||
@@ -43,7 +43,7 @@ static void * __init __alloc_memory_core_early(int nid, u64 size, u64 align, | |||
43 | 43 | ||
44 | addr = find_memory_core_early(nid, size, align, goal, limit); | 44 | addr = find_memory_core_early(nid, size, align, goal, limit); |
45 | 45 | ||
46 | if (addr == MEMBLOCK_ERROR) | 46 | if (!addr) |
47 | return NULL; | 47 | return NULL; |
48 | 48 | ||
49 | ptr = phys_to_virt(addr); | 49 | ptr = phys_to_virt(addr); |