Kernel: Fix MemoryRegion overlap comparison
This made some calls to `munmap` unmap extra regions.
This commit is contained in:
		
							parent
							
								
									7542e55cb2
								
							
						
					
					
						commit
						64c52012df
					
				| 
						 | 
				
			
			@ -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;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue