mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-03 21:10:30 +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
Notes:
sideshowbarker
2024-07-19 10:14:11 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/62c45850e1b
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…
Reference in a new issue