Kernel: Fix MemoryRegion test for contains_fully

This commit is contained in:
Bananymous 2024-08-30 15:33:58 +03:00
parent 827eec6af0
commit a134d16070
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ namespace Kernel
bool MemoryRegion::contains_fully(vaddr_t address, size_t size) const bool MemoryRegion::contains_fully(vaddr_t address, size_t size) const
{ {
return m_vaddr <= address && address + size < m_vaddr + m_size; return m_vaddr <= address && address + size <= m_vaddr + m_size;
} }
bool MemoryRegion::overlaps(vaddr_t address, size_t size) const bool MemoryRegion::overlaps(vaddr_t address, size_t size) const