1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:07:35 +00:00

Kernel: Change method name to clarify physical memory mmap validation

This commit is contained in:
Liav A 2021-12-23 21:11:18 +02:00 committed by Idan Horowitz
parent f9c4f65e1f
commit 876559d283
3 changed files with 3 additions and 3 deletions

View file

@ -46,7 +46,7 @@ ErrorOr<Memory::Region*> MemoryDevice::mmap(Process& process, OpenFileDescriptio
auto viewed_address = PhysicalAddress(offset);
dbgln("MemoryDevice: Trying to mmap physical memory at {} for range of {} bytes", viewed_address, range.size());
if (!MM.is_allowed_to_mmap_to_userspace(viewed_address, range)) {
if (!MM.is_allowed_to_mmap_physical_memory_to_userspace(viewed_address, range)) {
dbgln("MemoryDevice: Trying to mmap physical memory at {} for range of {} bytes failed due to violation of access", viewed_address, range.size());
return EINVAL;
}