tty: fix the masking logic
authorAlan Cox <alan@linux.intel.com>
Wed, 3 Oct 2018 12:27:02 +0000 (13:27 +0100)
committerAlan Cox <alan@linux.intel.com>
Wed, 3 Oct 2018 12:27:02 +0000 (13:27 +0100)
With this we appear to run ok

Kernel/tty.c

index ad06408..ec8e27d 100644 (file)
@@ -295,10 +295,10 @@ int tty_ioctl(uint8_t minor, uarg_t request, char *data)
                t->termios.c_oflag |= tm.c_oflag;
                t->termios.c_cflag &= ~*dp;
                tm.c_cflag &= *dp++;
-               t->termios.c_cflag |= tm.c_lflag;
+               t->termios.c_cflag |= tm.c_cflag;
                t->termios.c_lflag &= ~*dp;
                tm.c_lflag &= *dp;
-               t->termios.c_iflag |= tm.c_lflag;
+               t->termios.c_lflag |= tm.c_lflag;
                 tty_setup(minor, waito);
                 tty_selwake(minor, SELECT_IN|SELECT_OUT);
                break;