summaryrefslogtreecommitdiff
path: root/drivers/tty
diff options
context:
space:
mode:
authorNicolas Pitre <npitre@baylibre.com>2025-05-15 11:30:52 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-06-19 15:28:31 +0200
commit7a8e87568575c53255a02674a75f2c8f91393579 (patch)
tree2d7b8fc1707e3cffd65415e741f8371d1db43659 /drivers/tty
parentb3b4efa2e623aecaebd7c9b9e4171f5c659e9724 (diff)
downloadlinux-7a8e87568575c53255a02674a75f2c8f91393579.tar.gz
linux-7a8e87568575c53255a02674a75f2c8f91393579.tar.bz2
linux-7a8e87568575c53255a02674a75f2c8f91393579.zip
vt: remove VT_RESIZE and VT_RESIZEX from vt_compat_ioctl()
[ Upstream commit c4c7ead7b86c1e7f11c64915b7e5bb6d2e242691 ] They are listed amon those cmd values that "treat 'arg' as an integer" which is wrong. They should instead fall into the default case. Probably nobody ever relied on that code since 2009 but still. Fixes: e92166517e3c ("tty: handle VT specific compat ioctls in vt driver") Signed-off-by: Nicolas Pitre <npitre@baylibre.com> Reviewed-by: Jiri Slaby <jirislaby@kernel.org> Link: https://lore.kernel.org/r/pr214s15-36r8-6732-2pop-159nq85o48r7@syhkavp.arg Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/vt/vt_ioctl.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/tty/vt/vt_ioctl.c b/drivers/tty/vt/vt_ioctl.c
index 8c685b501404..5b21b60547da 100644
--- a/drivers/tty/vt/vt_ioctl.c
+++ b/drivers/tty/vt/vt_ioctl.c
@@ -1105,8 +1105,6 @@ long vt_compat_ioctl(struct tty_struct *tty,
case VT_WAITACTIVE:
case VT_RELDISP:
case VT_DISALLOCATE:
- case VT_RESIZE:
- case VT_RESIZEX:
return vt_ioctl(tty, cmd, arg);
/*