diff options
Diffstat (limited to 'payloads/libpayload/arch')
-rw-r--r-- | payloads/libpayload/arch/arm64/mmu.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/payloads/libpayload/arch/arm64/mmu.c b/payloads/libpayload/arch/arm64/mmu.c index 50e7f6cd17..d84f969dc6 100644 --- a/payloads/libpayload/arch/arm64/mmu.c +++ b/payloads/libpayload/arch/arm64/mmu.c @@ -441,8 +441,7 @@ static int mmu_is_range_free(uint64_t r_base, uint64_t start = r[i].base; uint64_t end = start + r[i].size; - if (((r_base >= start) && (r_base <= end)) || - ((r_end >= start) && (r_end <= end))) + if ((start < r_end) && (end > r_base)) return 0; } |