Patch "serial: core: mark port as initialized in autoconfig" has been added to the 4.14-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
serial: core: mark port as initialized in autoconfig
to the 4.14-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:
serial-core-mark-port-as-initialized-in-autoconfig.patch
and it can be found in the queue-4.14 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
714569064adee3c114a2a6490735b94abe269068Mon Sep 17 00:00:00 2001
From: Sebastian Andrzej Siewior <[email protected]>
Date: Sat, 3 Feb 2018 12:27:23 +0100
Subject: serial: core: mark port as initialized in autoconfig
From: Sebastian Andrzej Siewior <[email protected]>
commit 714569064adee3c114a2a6490735b94abe269068 upstream.
This is a followup on 44117a1d1732 ("serial: core: mark port as initialized after successful IRQ change").
Nikola has been using autoconfig via setserial and reported a crash similar to what I fixed in the earlier mentioned commit. Here I do the same fixup for the autoconfig. I wasn't sure that this is the right approach. Nikola confirmed that it fixes his crash.
--- drivers/tty/serial/serial_core.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/tty/serial/serial_core.c +2 -0
@@ -1157,6 +1157,8 @@ static int uart_do_autoconfig(struct tty uport->ops->config_port (uport, flags); ret =uart_startup (tty, state,1 ); +if (ret ==0 ) +tty_port_set_initialized (port, true);if (ret >0 ) ret =0 ; }
Patches currently in stable-queue which might be from [email protected] are
queue-4.14/serial-core-mark-port-as-initialized-in-autoconfig.patch