diff --git a/arch/x86/kernel/e820.c b/arch/x86/kernel/e820.c index b8edc5e32d87..3fba5406502a 100644 --- a/arch/x86/kernel/e820.c +++ b/arch/x86/kernel/e820.c @@ -655,7 +655,7 @@ static int __init e820_search_gap(unsigned long *gap_start, unsigned long *gap_s if (last > end) { unsigned long gap = last - end; - if (gap >= *gap_size) { + if (gap > *gap_size) { *gap_size = gap; *gap_start = end; found = 1;