mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:28:10 +00:00
Kernel: Don't crash on invalid fcntl
This commit is contained in:
parent
b24cfd36ae
commit
dce3faff08
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