Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

vt: remove VT_RESIZE and VT_RESIZEX from vt_compat_ioctl()

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>

authored by

Nicolas Pitre and committed by
Greg Kroah-Hartman
c4c7ead7 63f0d28d

-2
-2
drivers/tty/vt/vt_ioctl.c
··· 1103 1103 case VT_WAITACTIVE: 1104 1104 case VT_RELDISP: 1105 1105 case VT_DISALLOCATE: 1106 - case VT_RESIZE: 1107 - case VT_RESIZEX: 1108 1106 return vt_ioctl(tty, cmd, arg); 1109 1107 1110 1108 /*