diff options
Diffstat (limited to 'arch/x86/kernel/setup.c')
-rw-r--r-- | arch/x86/kernel/setup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c index afaf38447ef..31ffe20d5d2 100644 --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c | |||
@@ -331,7 +331,7 @@ static void __init relocate_initrd(void) | |||
331 | ramdisk_here = memblock_find_in_range(0, end_of_lowmem, area_size, | 331 | ramdisk_here = memblock_find_in_range(0, end_of_lowmem, area_size, |
332 | PAGE_SIZE); | 332 | PAGE_SIZE); |
333 | 333 | ||
334 | if (ramdisk_here == MEMBLOCK_ERROR) | 334 | if (!ramdisk_here) |
335 | panic("Cannot find place for new RAMDISK of size %lld\n", | 335 | panic("Cannot find place for new RAMDISK of size %lld\n", |
336 | ramdisk_size); | 336 | ramdisk_size); |
337 | 337 | ||
@@ -554,7 +554,7 @@ static void __init reserve_crashkernel(void) | |||
554 | crash_base = memblock_find_in_range(alignment, | 554 | crash_base = memblock_find_in_range(alignment, |
555 | CRASH_KERNEL_ADDR_MAX, crash_size, alignment); | 555 | CRASH_KERNEL_ADDR_MAX, crash_size, alignment); |
556 | 556 | ||
557 | if (crash_base == MEMBLOCK_ERROR) { | 557 | if (!crash_base) { |
558 | pr_info("crashkernel reservation failed - No suitable area found.\n"); | 558 | pr_info("crashkernel reservation failed - No suitable area found.\n"); |
559 | return; | 559 | return; |
560 | } | 560 | } |