diff options
author | Nicolas Pitre <nicolas.pitre@linaro.org> | 2019-01-08 22:55:00 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-01-31 08:14:40 +0100 |
commit | 18ef43def81cebcdd3b7391b62de84b777814e08 (patch) | |
tree | 0914b154d3ee8895db84c748aaf82d55c2ce581e /drivers/tty | |
parent | 855f7e64169f4da6691b30b1357a2b070515634c (diff) | |
download | linux-stable-18ef43def81cebcdd3b7391b62de84b777814e08.tar.gz linux-stable-18ef43def81cebcdd3b7391b62de84b777814e08.tar.bz2 linux-stable-18ef43def81cebcdd3b7391b62de84b777814e08.zip |
vt: always call notifier with the console lock held
commit 7e1d226345f89ad5d0216a9092c81386c89b4983 upstream.
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')
-rw-r--r-- | drivers/tty/vt/vt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c index adf5c896cecb..41ad46bf22c5 100644 --- a/drivers/tty/vt/vt.c +++ b/drivers/tty/vt/vt.c @@ -2767,8 +2767,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; } |