Patch "tty: vt, return error when con_startup fails" has been added to the 4.4-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
tty: vt, return error when con_startup fails
to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
tty-vt-return-error-when-con_startup-fails.patch
and it can be found in the queue-4.4 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
6798df4c5fe0a7e6d2065cf79649a794e5ba7114Mon Sep 17 00:00:00 2001
From: Jiri Slaby <[email protected]>
Date: Tue, 3 May 2016 17:05:54 +0200
Subject: tty: vt, return error when con_startup fails
From: Jiri Slaby <[email protected]>
commit 6798df4c5fe0a7e6d2065cf79649a794e5ba7114 upstream.
When csw->con_startup() fails in do_register_con_driver, we return no error (i.e. 0). This was changed back in 2006 by commit 3e795de763. Before that we used to return -ENODEV.
So fix the return value to be -ENODEV in that case again.
--- drivers/tty/vt/vt.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/tty/vt/vt.c +3 -2
@@ -3583,9 +3583,10 @@ static int do_register_con_driver(const goto err; desc = csw->con_startup (); - -if (!desc) +if (!desc) { + retval = -ENODEV ; goto err; + } retval = -EINVAL ;
Patches currently in stable-queue which might be from [email protected] are
queue-4.4/bluetooth-vhci-purge-unhandled-skbs.patch queue-4.4/tty-n_gsm-fix-false-positive-warn_on.patch queue-4.4/bluetooth-vhci-fix-open_timeout-vs.-hdev-race.patch queue-4.4/tty-vt-return-error-when-con_startup-fails.patch