diff options
Diffstat (limited to 'drivers/tty/serial/pch_uart.c')
-rw-r--r-- | drivers/tty/serial/pch_uart.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/tty/serial/pch_uart.c b/drivers/tty/serial/pch_uart.c index 52379e56a31e..f0161d6ccc5c 100644 --- a/drivers/tty/serial/pch_uart.c +++ b/drivers/tty/serial/pch_uart.c | |||
@@ -1098,6 +1098,8 @@ static void pch_uart_err_ir(struct eg20t_port *priv, unsigned int lsr) | |||
1098 | if (tty == NULL) { | 1098 | if (tty == NULL) { |
1099 | for (i = 0; error_msg[i] != NULL; i++) | 1099 | for (i = 0; error_msg[i] != NULL; i++) |
1100 | dev_err(&priv->pdev->dev, error_msg[i]); | 1100 | dev_err(&priv->pdev->dev, error_msg[i]); |
1101 | } else { | ||
1102 | tty_kref_put(tty); | ||
1101 | } | 1103 | } |
1102 | } | 1104 | } |
1103 | 1105 | ||