mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
Kernel: Remove big lock from sys$link
This syscall doesn't access any unprotected shared data.
This commit is contained in:
parent
fa360f7d88
commit
1474b18070
Notes:
sideshowbarker
2024-07-17 14:13:24 +09:00
Author: https://github.com/IdanHo
Commit: 1474b18070
Pull-request: https://github.com/SerenityOS/serenity/pull/13594
2 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ namespace Kernel {
|
|||
|
||||
ErrorOr<FlatPtr> Process::sys$link(Userspace<Syscall::SC_link_params const*> user_params)
|
||||
{
|
||||
VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this)
|
||||
VERIFY_NO_PROCESS_BIG_LOCK(this)
|
||||
TRY(require_promise(Pledge::cpath));
|
||||
auto params = TRY(copy_typed_from_user(user_params));
|
||||
auto old_path = TRY(try_copy_kstring_from_user(params.old_path));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue