]> Gentwo Git Trees - linux/.git/commit
tty/vt: Add missing return value for VT_RESIZE in vt_ioctl()
authorZizhi Wo <wozizhi@huaweicloud.com>
Thu, 4 Sep 2025 02:39:55 +0000 (10:39 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Sep 2025 13:49:55 +0000 (15:49 +0200)
commitda7e8b3823962b13e713d4891e136a261ed8e6a2
treea25daa2623d481fcc928b5e96d4defa7ce9530c2
parent45747017928c7e6ef71f3a09c5610b7026357162
tty/vt: Add missing return value for VT_RESIZE in vt_ioctl()

In vt_ioctl(), the handler for VT_RESIZE always returns 0, which prevents
users from detecting errors. Add the missing return value so that errors
can be properly reported to users like vt_resizex().

Signed-off-by: Zizhi Wo <wozizhi@huaweicloud.com>
Link: https://lore.kernel.org/r/20250904023955.3892120-1-wozizhi@huaweicloud.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/vt_ioctl.c