aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/serial/8250.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/serial/8250.c b/drivers/serial/8250.c
index 96a585e1cee8..6d0ce64163e5 100644
--- a/drivers/serial/8250.c
+++ b/drivers/serial/8250.c
@@ -2228,7 +2228,9 @@ serial8250_set_termios(struct uart_port *port, struct ktermios *termios,
2228 } 2228 }
2229 serial8250_set_mctrl(&up->port, up->port.mctrl); 2229 serial8250_set_mctrl(&up->port, up->port.mctrl);
2230 spin_unlock_irqrestore(&up->port.lock, flags); 2230 spin_unlock_irqrestore(&up->port.lock, flags);
2231 tty_termios_encode_baud_rate(termios, baud, baud); 2231 /* Don't rewrite B0 */
2232 if (tty_termios_baud_rate(termios))
2233 tty_termios_encode_baud_rate(termios, baud, baud);
2232} 2234}
2233 2235
2234static void 2236static void