mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 02:27:35 +00:00
Kernel: Page allocation should not use memset_user() when zeroing
We're not zeroing new pages through a userspace address, so this should not use memset_user().
This commit is contained in:
parent
197e73ee31
commit
62c45850e1
1 changed files with 1 additions and 1 deletions
|
@ -496,7 +496,7 @@ RefPtr<PhysicalPage> MemoryManager::allocate_user_physical_page(ShouldZeroFill s
|
|||
|
||||
if (should_zero_fill == ShouldZeroFill::Yes) {
|
||||
auto* ptr = (u32*)quickmap_page(*page);
|
||||
memset_user(ptr, 0, PAGE_SIZE);
|
||||
memset(ptr, 0, PAGE_SIZE);
|
||||
unquickmap_page();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue