]> git.hungrycats.org Git - linux/commitdiff
[SERIAL] Bug fix: remove infinite loop in sa1100 serial driver.
authorRussell King <rmk@flint.arm.linux.org.uk>
Wed, 8 Jan 2003 23:08:50 +0000 (23:08 +0000)
committerRussell King <rmk@flint.arm.linux.org.uk>
Wed, 8 Jan 2003 23:08:50 +0000 (23:08 +0000)
drivers/serial/sa1100.c

index 52377d5c903856070f7e503c3388d97c063b1931..1690a7c2c2c5b9c8167f067a18d9d25b8182effd 100644 (file)
@@ -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;