mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:17:35 +00:00
Kernel: Fix logic error in PhysicalRegion::contains()
This was incorrectly returning true for the address one byte past the end of the region.
This commit is contained in:
parent
6cc1247395
commit
5c24d18923
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ public:
|
||||||
PhysicalAddress lower() const { return m_lower; }
|
PhysicalAddress lower() const { return m_lower; }
|
||||||
PhysicalAddress upper() const { return m_upper; }
|
PhysicalAddress upper() const { return m_upper; }
|
||||||
unsigned size() const { return m_pages; }
|
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<PhysicalRegion> try_take_pages_from_beginning(unsigned);
|
OwnPtr<PhysicalRegion> try_take_pages_from_beginning(unsigned);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue