aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/generic_serial.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/generic_serial.c')
-rw-r--r--drivers/char/generic_serial.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/char/generic_serial.c b/drivers/char/generic_serial.c
index 7ed7da1d99cf..f6610f28d657 100644
--- a/drivers/char/generic_serial.c
+++ b/drivers/char/generic_serial.c
@@ -586,8 +586,7 @@ void gs_close(struct tty_struct * tty, struct file * filp)
586 586
587 port->flags &= ~GS_ACTIVE; 587 port->flags &= ~GS_ACTIVE;
588 588
589 if (tty->driver->flush_buffer) 589 gs_flush_buffer(tty);
590 tty->driver->flush_buffer(tty);
591 590
592 tty_ldisc_flush(tty); 591 tty_ldisc_flush(tty);
593 tty->closing = 0; 592 tty->closing = 0;