Skip to content

Commit c95e5af

Browse files
jariruusugregkh
authored andcommitted
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 <[email protected]> Fixes: da7e8b3 ("tty/vt: Add missing return value for VT_RESIZE in vt_ioctl()") Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 1ebfea9 commit c95e5af

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/tty/vt/vt_ioctl.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -924,8 +924,10 @@ int vt_ioctl(struct tty_struct *tty,
924924
if (vc) {
925925
/* FIXME: review v tty lock */
926926
ret = __vc_resize(vc_cons[i].d, cc, ll, true);
927-
if (ret)
927+
if (ret) {
928+
console_unlock();
928929
return ret;
930+
}
929931
}
930932
}
931933
console_unlock();

0 commit comments

Comments
 (0)