Skip to content

Commit c4c7ead

Browse files
Nicolas Pitregregkh
authored andcommitted
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: e921665 ("tty: handle VT specific compat ioctls in vt driver") Signed-off-by: Nicolas Pitre <[email protected]> Reviewed-by: Jiri Slaby <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 63f0d28 commit c4c7ead

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/tty/vt/vt_ioctl.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,8 +1103,6 @@ long vt_compat_ioctl(struct tty_struct *tty,
11031103
case VT_WAITACTIVE:
11041104
case VT_RELDISP:
11051105
case VT_DISALLOCATE:
1106-
case VT_RESIZE:
1107-
case VT_RESIZEX:
11081106
return vt_ioctl(tty, cmd, arg);
11091107

11101108
/*

0 commit comments

Comments
 (0)