mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 18:09:56 +00:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
4574701792
commit
da7e8b3823
@@ -908,7 +908,9 @@ int vt_ioctl(struct tty_struct *tty,
|
|||||||
|
|
||||||
if (vc) {
|
if (vc) {
|
||||||
/* FIXME: review v tty lock */
|
/* FIXME: review v tty lock */
|
||||||
__vc_resize(vc_cons[i].d, cc, ll, true);
|
ret = __vc_resize(vc_cons[i].d, cc, ll, true);
|
||||||
|
if (ret)
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user