mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-02 04:20:28 +00:00
Kernel: Remove SmapDisabler in sys$create_shared_buffer()
This commit is contained in:
parent
9aa234cc47
commit
bead20c40f
Notes:
sideshowbarker
2024-07-19 09:13:46 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/bead20c40f2
1 changed files with 1 additions and 4 deletions
|
@ -3529,10 +3529,7 @@ int Process::sys$create_shared_buffer(int size, void** buffer)
|
|||
shared_buffer->share_with(m_pid);
|
||||
|
||||
void* address = shared_buffer->ref_for_process_and_get_address(*this);
|
||||
{
|
||||
SmapDisabler disabler;
|
||||
*buffer = address;
|
||||
}
|
||||
copy_to_user(buffer, &address);
|
||||
ASSERT((int)shared_buffer->size() >= size);
|
||||
#ifdef SHARED_BUFFER_DEBUG
|
||||
kprintf("%s(%u): Created shared buffer %d @ %p (%u bytes, vmobject is %u)\n", name().characters(), pid(), shared_buffer_id, *buffer, size, shared_buffer->size());
|
||||
|
|
Loading…
Reference in a new issue