aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraeme Gregory <graeme.gregory@linaro.org>2015-05-19 10:25:14 +0100
committerGraeme Gregory <graeme.gregory@linaro.org>2015-06-03 14:36:31 +0100
commit40e0ca673d66d67507446fd756ebf702a8ab2a29 (patch)
tree97c2d49ba92f62938c34e27a1cd36f5da3295e9a
parentf6a9426a42611aec277b1c0594398121cc2a5bff (diff)
pl011: sbsa mode fedora login fix/kludgeleg-20150603.0
From http://lists.infradead.org/pipermail/linux-arm-kernel/2015-May/343042.html Signed-off-by: Graeme Gregory <graeme.gregory@linaro.org>
-rw-r--r--drivers/tty/serial/amba-pl011.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c
index 79f716c977dd..8e10358d4ab4 100644
--- a/drivers/tty/serial/amba-pl011.c
+++ b/drivers/tty/serial/amba-pl011.c
@@ -1924,7 +1924,7 @@ sbsa_uart_set_termios(struct uart_port *port, struct ktermios *termios,
container_of(port, struct uart_amba_port, port);
unsigned long flags;
- if (old)
+ if (old && old->c_cflag)
tty_termios_copy_hw(termios, old);
tty_termios_encode_baud_rate(termios, uap->fixed_baud, uap->fixed_baud);