--- zzzz-none-000/linux-4.9.279/drivers/tty/tty_io.c 2021-08-08 06:38:54.000000000 +0000 +++ puma7-arm-6591-750/linux-4.9.279/drivers/tty/tty_io.c 2023-02-08 10:58:14.000000000 +0000 @@ -62,7 +62,11 @@ * 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 @@ -1256,6 +1260,10 @@ if (tty_paranoia_check(tty, file_inode(file), "tty_write")) return -EIO; + /* in case TCOOFF ioctl was called*/ + if (tty->flow_stopped == 1) { + return count; + } if (!tty || !tty->ops->write || tty_io_error(tty)) return -EIO; /* Short term debug to catch buggy drivers */