summaryrefslogtreecommitdiff
path: root/drivers/tty/vt
diff options
context:
space:
mode:
authorNicolas Pitre <nicolas.pitre@linaro.org>2019-01-09 06:55:00 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-01-18 15:42:58 +0300
commit7e1d226345f89ad5d0216a9092c81386c89b4983 (patch)
tree4de15deb2f8d0b0e740ce5384350ac7745c599e6 /drivers/tty/vt
parent6609cff65c5b184ab889880ef5d41189611ea05f (diff)
downloadlinux-7e1d226345f89ad5d0216a9092c81386c89b4983.tar.xz
vt: always call notifier with the console lock held
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 <nico@linaro.org> Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/vt')
-rw-r--r--drivers/tty/vt/vt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c
index b9004bd08772..5b8b0e33f939 100644
--- a/drivers/tty/vt/vt.c
+++ b/drivers/tty/vt/vt.c
@@ -2764,8 +2764,8 @@ rescan_last_byte:
con_flush(vc, draw_from, draw_to, &draw_x);
vc_uniscr_debug_check(vc);
console_conditional_schedule();
- console_unlock();
notify_update(vc);
+ console_unlock();
return n;
}