mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-06 08:10:02 +00:00
Kernel: Don't crash on invalid fcntl
This commit is contained in:
parent
b24cfd36ae
commit
dce3faff08
Notes:
sideshowbarker
2024-07-19 07:00:37 +09:00
Author: https://github.com/BenWiederhake
Commit: dce3faff08
Pull-request: https://github.com/SerenityOS/serenity/pull/2087
1 changed files with 1 additions and 1 deletions
|
@ -1865,7 +1865,7 @@ int Process::sys$fcntl(int fd, int cmd, u32 arg)
|
|||
description->set_file_flags(arg);
|
||||
break;
|
||||
default:
|
||||
ASSERT_NOT_REACHED();
|
||||
return -EINVAL;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue