diff --git a/kernel/kernel/Memory/MemoryRegion.cpp b/kernel/kernel/Memory/MemoryRegion.cpp index 82376021..cb306d88 100644 --- a/kernel/kernel/Memory/MemoryRegion.cpp +++ b/kernel/kernel/Memory/MemoryRegion.cpp @@ -40,7 +40,7 @@ namespace Kernel bool MemoryRegion::overlaps(vaddr_t address, size_t size) const { - if (address + size < m_vaddr) + if (address + size <= m_vaddr) return false; if (address >= m_vaddr + m_size) return false;