Skip to content

Commit 5dc95f8

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: da7e8b382396 ("tty/vt: Add missing return value for VT_RESIZE in vt_ioctl()") Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 82120fe commit 5dc95f8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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)