summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2020-01-10 06:59:01 +0100
committerAndreas Kling <awesomekling@gmail.com>2020-01-10 10:57:33 +0100
commit62c45850e1b42edeec1157ab693fd8b2166e5925 (patch)
treea306c5eff2540abf5f5cd9ba22c7b873ba6156fa /Kernel
parent197e73ee311db09c50e3a48d1e6c0b1e15512664 (diff)
downloadserenity-62c45850e1b42edeec1157ab693fd8b2166e5925.zip
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().
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/VM/MemoryManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/VM/MemoryManager.cpp b/Kernel/VM/MemoryManager.cpp
index 2ac5918062..3cde372f64 100644
--- a/Kernel/VM/MemoryManager.cpp
+++ b/Kernel/VM/MemoryManager.cpp
@@ -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();
}