vt: always call notifier with the console lock held
authorNicolas Pitre <nicolas.pitre@linaro.org>
Wed, 9 Jan 2019 03:55:00 +0000 (22:55 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jan 2019 12:42:58 +0000 (13:42 +0100)
commit7e1d226345f89ad5d0216a9092c81386c89b4983
tree4de15deb2f8d0b0e740ce5384350ac7745c599e6
parent6609cff65c5b184ab889880ef5d41189611ea05f
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>
drivers/tty/vt/vt.c