diff options
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/VM/RangeAllocator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/VM/RangeAllocator.cpp b/Kernel/VM/RangeAllocator.cpp index 35a4a783cc..3df97c6f1b 100644 --- a/Kernel/VM/RangeAllocator.cpp +++ b/Kernel/VM/RangeAllocator.cpp @@ -108,7 +108,7 @@ Optional<Range> RangeAllocator::allocate_randomized(size_t size, size_t alignmen VirtualAddress random_address { get_good_random<FlatPtr>() }; random_address.mask(PAGE_MASK); - if (!m_total_range.contains(random_address)) + if (!m_total_range.contains(random_address, size)) continue; auto range = allocate_specific(random_address, size); |