Kernel: Don't crash on invalid fcntl

This commit is contained in:
Ben Wiederhake 2020-05-03 14:47:15 +02:00 committed by Andreas Kling
parent b24cfd36ae
commit dce3faff08
Notes: sideshowbarker 2024-07-19 07:00:37 +09:00

View file

@ -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;
}