1 From 7e1d226345f89ad5d0216a9092c81386c89b4983 Mon Sep 17 00:00:00 2001
2 From: Nicolas Pitre <nicolas.pitre@linaro.org>
3 Date: Tue, 8 Jan 2019 22:55:00 -0500
4 Subject: vt: always call notifier with the console lock held
6 From: Nicolas Pitre <nicolas.pitre@linaro.org>
8 commit 7e1d226345f89ad5d0216a9092c81386c89b4983 upstream.
10 Every invocation of notify_write() and notify_update() is performed
11 under the console lock, except for one case. Let's fix that.
13 Signed-off-by: Nicolas Pitre <nico@linaro.org>
14 Cc: stable@vger.kernel.org
15 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
18 drivers/tty/vt/vt.c | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
21 --- a/drivers/tty/vt/vt.c
22 +++ b/drivers/tty/vt/vt.c
23 @@ -2764,8 +2764,8 @@ rescan_last_byte:
24 con_flush(vc, draw_from, draw_to, &draw_x);
25 vc_uniscr_debug_check(vc);
26 console_conditional_schedule();