mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-27 04:25:12 +00:00
Formatting
This commit is contained in:
parent
e434bc0811
commit
1cca6c4119
@ -308,9 +308,10 @@ int MemoryManager::PoolCommit(VAddr virtual_addr, size_t size, MemoryProt prot)
|
||||
|
||||
auto& vma = FindVMA(mapped_addr)->second;
|
||||
if (vma.type != VMAType::PoolReserved || vma.base + vma.size < virtual_addr + size) {
|
||||
// If the VMA isn't PoolReserved or if there's not enough space
|
||||
// to commit, this should return EINVAL
|
||||
LOG_ERROR(Kernel_Vmm, "Trying to PoolCommit non-pooled memory!");
|
||||
// If the VMA isn't PoolReserved or if there's not enough space to commit, return EINVAL
|
||||
LOG_ERROR(Kernel_Vmm,
|
||||
"Pooled region {:#x} to {:#x} is not large enough to commit from {:#x} to {:#x}",
|
||||
vma.base, vma.size, mapped_addr, size);
|
||||
return ORBIS_KERNEL_ERROR_EINVAL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user