aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/tty/tty_ioctl.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/tty/tty_ioctl.c b/drivers/tty/tty_ioctl.c
index 8481b29d5b3a..cc0fc52787c7 100644
--- a/drivers/tty/tty_ioctl.c
+++ b/drivers/tty/tty_ioctl.c
@@ -1096,12 +1096,16 @@ int tty_perform_flush(struct tty_struct *tty, unsigned long arg)
1096 ld = tty_ldisc_ref_wait(tty); 1096 ld = tty_ldisc_ref_wait(tty);
1097 switch (arg) { 1097 switch (arg) {
1098 case TCIFLUSH: 1098 case TCIFLUSH:
1099 if (ld && ld->ops->flush_buffer) 1099 if (ld && ld->ops->flush_buffer) {
1100 ld->ops->flush_buffer(tty); 1100 ld->ops->flush_buffer(tty);
1101 tty_unthrottle(tty);
1102 }
1101 break; 1103 break;
1102 case TCIOFLUSH: 1104 case TCIOFLUSH:
1103 if (ld && ld->ops->flush_buffer) 1105 if (ld && ld->ops->flush_buffer) {
1104 ld->ops->flush_buffer(tty); 1106 ld->ops->flush_buffer(tty);
1107 tty_unthrottle(tty);
1108 }
1105 /* fall through */ 1109 /* fall through */
1106 case TCOFLUSH: 1110 case TCOFLUSH:
1107 tty_driver_flush_buffer(tty); 1111 tty_driver_flush_buffer(tty);