mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 20:42:56 +01:00
Fixed Ram_dataspace_factory not allocating memory when supplied with custom range.
This commit is contained in:
@@ -160,7 +160,7 @@ Ram_dataspace_factory::try_alloc(size_t ds_size, Cache cache, Range_allocator::R
|
||||
Range_allocator::Alloc_result allocated_range = Allocator::Alloc_error::DENIED;
|
||||
|
||||
for (size_t align_log2 = log2(ds_size); align_log2 >= 12; align_log2--) {
|
||||
_phys_alloc.alloc_aligned(ds_size, (unsigned)align_log2, range);
|
||||
allocated_range = _phys_alloc.alloc_aligned(ds_size, (unsigned)align_log2, range);
|
||||
if (allocated_range.ok())
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user