Commit 994ee212 authored by Russell King's avatar Russell King

[SERIAL] Bug fix: remove infinite loop in sa1100 serial driver.

parent cc9b418f
......@@ -447,7 +447,7 @@ sa1100_set_termios(struct uart_port *port, struct termios *termios,
/*
* We only support CS7 and CS8.
*/
while ((termios->c_cflag & CSIZE) != CS7 ||
while ((termios->c_cflag & CSIZE) != CS7 &&
(termios->c_cflag & CSIZE) != CS8) {
termios->c_cflag &= ~CSIZE;
termios->c_cflag |= old_csize;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment