mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
tty/vt: fix up incorrect backport to stable releases
Below is a patch for 6.12.58+ and 6.17.8+ stable branches only.
Upstream does not need this.
Signed-off-by: Jari Ruusu <jariruusu@protonmail.com>
Fixes: da7e8b3823 ("tty/vt: Add missing return value for VT_RESIZE in vt_ioctl()")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
82120feecc
commit
5dc95f897d
@@ -924,8 +924,10 @@ int vt_ioctl(struct tty_struct *tty,
|
||||
if (vc) {
|
||||
/* FIXME: review v tty lock */
|
||||
ret = __vc_resize(vc_cons[i].d, cc, ll, true);
|
||||
if (ret)
|
||||
if (ret) {
|
||||
console_unlock();
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
}
|
||||
console_unlock();
|
||||
|
||||
Reference in New Issue
Block a user