diff --git a/Kernel/VM/PhysicalRegion.h b/Kernel/VM/PhysicalRegion.h index 769ca35f30..c6962768c8 100644 --- a/Kernel/VM/PhysicalRegion.h +++ b/Kernel/VM/PhysicalRegion.h @@ -30,7 +30,7 @@ public: PhysicalAddress lower() const { return m_lower; } PhysicalAddress upper() const { return m_upper; } unsigned size() const { return m_pages; } - bool contains(PhysicalAddress paddr) const { return paddr >= m_lower && paddr <= m_upper; } + bool contains(PhysicalAddress paddr) const { return paddr >= m_lower && paddr < m_upper; } OwnPtr try_take_pages_from_beginning(unsigned);