From: Nicolas Pitre Date: Wed, 9 Jan 2019 03:55:00 +0000 (-0500) Subject: vt: always call notifier with the console lock held X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0fef97ac145287bbf83e70bf84632fd506995018;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git vt: always call notifier with the console lock held [ Upstream commit 7e1d226345f89ad5d0216a9092c81386c89b4983 ] Every invocation of notify_write() and notify_update() is performed under the console lock, except for one case. Let's fix that. Signed-off-by: Nicolas Pitre Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c index 1fb5e7f409c4..6ff921cf9a9e 100644 --- a/drivers/tty/vt/vt.c +++ b/drivers/tty/vt/vt.c @@ -2435,8 +2435,8 @@ rescan_last_byte: } con_flush(vc, draw_from, draw_to, &draw_x); console_conditional_schedule(); - console_unlock(); notify_update(vc); + console_unlock(); return n; }