aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/serial/serial_core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/serial/serial_core.c b/drivers/serial/serial_core.c
index 42d2e108b679..9884bc9eecb1 100644
--- a/drivers/serial/serial_core.c
+++ b/drivers/serial/serial_core.c
@@ -573,6 +573,8 @@ static void uart_flush_buffer(struct tty_struct *tty)
573 573
574 spin_lock_irqsave(&port->lock, flags); 574 spin_lock_irqsave(&port->lock, flags);
575 uart_circ_clear(&state->info->xmit); 575 uart_circ_clear(&state->info->xmit);
576 if (port->ops->flush_buffer)
577 port->ops->flush_buffer(port);
576 spin_unlock_irqrestore(&port->lock, flags); 578 spin_unlock_irqrestore(&port->lock, flags);
577 tty_wakeup(tty); 579 tty_wakeup(tty);
578} 580}