summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kexec/arch/i386/crashdump-x86.c2
-rw-r--r--kexec/arch/x86_64/crashdump-x86_64.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/kexec/arch/i386/crashdump-x86.c b/kexec/arch/i386/crashdump-x86.c
index 1782712..477efc2 100644
--- a/kexec/arch/i386/crashdump-x86.c
+++ b/kexec/arch/i386/crashdump-x86.c
@@ -111,7 +111,7 @@ static int get_crash_memory_ranges(struct memory_range **range, int *ranges,
}
/* First 640K already registered */
- if (start >= 0x00000000ULL && end <= 0x0009ffffULL)
+ if (end <= 0x0009ffff)
continue;
crash_memory_range[memory_ranges].start = start;
diff --git a/kexec/arch/x86_64/crashdump-x86_64.c b/kexec/arch/x86_64/crashdump-x86_64.c
index e7fbf5b..bb14e0d 100644
--- a/kexec/arch/x86_64/crashdump-x86_64.c
+++ b/kexec/arch/x86_64/crashdump-x86_64.c
@@ -233,7 +233,7 @@ static int get_crash_memory_ranges(struct memory_range **range, int *ranges,
}
/* First 640K already registered */
- if (start >= 0x00000000 && end <= 0x0009ffff)
+ if (end <= 0x0009ffff)
continue;
crash_memory_range[memory_ranges].start = start;