--- zzzz-none-000/linux-2.6.39.4/drivers/tty/tty_io.c 2011-08-03 19:43:28.000000000 +0000 +++ puma6-atom-6490-729/linux-2.6.39.4/drivers/tty/tty_io.c 2021-11-10 13:38:17.000000000 +0000 @@ -64,8 +64,13 @@ * Move do_SAK() into process context. Less stack use in devfs functions. * alloc_tty_struct() always uses kmalloc() * -- Andrew Morton 17Mar01 + * + * + * Includes Intel Corporation's changes/modifications dated: [01/24/2013]. + * Changed/modified portions - Copyright © [2011], Intel Corporation. */ + #include #include #include @@ -1122,6 +1127,11 @@ if (tty_paranoia_check(tty, inode, "tty_write")) return -EIO; + /* in case TCOOFF ioctl was called*/ + if (tty->flow_stopped == 1) + { + return count; + } if (!tty || !tty->ops->write || (test_bit(TTY_IO_ERROR, &tty->flags))) return -EIO;