Kernel: Unsupported TTY ioctls should return EINVAL gracefully

Fixes #4971
This commit is contained in:
Tom 2021-01-21 14:47:56 -07:00 committed by Andreas Kling
commit 2830ce5383
Notes: sideshowbarker 2024-07-18 23:01:24 +09:00

View file

@ -419,7 +419,6 @@ int TTY::ioctl(FileDescription&, unsigned request, FlatPtr arg)
current_process.set_tty(nullptr);
return 0;
}
ASSERT_NOT_REACHED();
return -EINVAL;
}