aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/tty/serial/serial_core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c
index dd1a7bef6647..f26834d262b3 100644
--- a/drivers/tty/serial/serial_core.c
+++ b/drivers/tty/serial/serial_core.c
@@ -1451,6 +1451,8 @@ static void uart_hangup(struct tty_struct *tty)
1451 clear_bit(ASYNCB_NORMAL_ACTIVE, &port->flags); 1451 clear_bit(ASYNCB_NORMAL_ACTIVE, &port->flags);
1452 spin_unlock_irqrestore(&port->lock, flags); 1452 spin_unlock_irqrestore(&port->lock, flags);
1453 tty_port_tty_set(port, NULL); 1453 tty_port_tty_set(port, NULL);
1454 if (!uart_console(state->uart_port))
1455 uart_change_pm(state, UART_PM_STATE_OFF);
1454 wake_up_interruptible(&port->open_wait); 1456 wake_up_interruptible(&port->open_wait);
1455 wake_up_interruptible(&port->delta_msr_wait); 1457 wake_up_interruptible(&port->delta_msr_wait);
1456 } 1458 }