mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +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: https://github.com/SerenityOS/serenity/commit/dce3faff086 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…
Reference in a new issue