From 2830ce538360f12ee5fe8f7a922c2c2b7d5295a7 Mon Sep 17 00:00:00 2001 From: Tom Date: Thu, 21 Jan 2021 14:47:56 -0700 Subject: [PATCH] Kernel: Unsupported TTY ioctls should return EINVAL gracefully Fixes #4971 --- Kernel/TTY/TTY.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/Kernel/TTY/TTY.cpp b/Kernel/TTY/TTY.cpp index bde26f6da7..b7425f9b56 100644 --- a/Kernel/TTY/TTY.cpp +++ b/Kernel/TTY/TTY.cpp @@ -419,7 +419,6 @@ int TTY::ioctl(FileDescription&, unsigned request, FlatPtr arg) current_process.set_tty(nullptr); return 0; } - ASSERT_NOT_REACHED(); return -EINVAL; }