]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/tty/tty_ioctl.c
tty: Fix SIGTTOU not sent with tcflush()
[karo-tx-linux.git] / drivers / tty / tty_ioctl.c
index 03ba081c577251a0947466b79f23b36b359b51c1..6fd60fece6b4b01684695b7df4af376e695ff873 100644 (file)
@@ -1201,6 +1201,9 @@ int n_tty_ioctl_helper(struct tty_struct *tty, struct file *file,
                }
                return 0;
        case TCFLSH:
+               retval = tty_check_change(tty);
+               if (retval)
+                       return retval;
                return __tty_perform_flush(tty, arg);
        default:
                /* Try the mode commands */