diff options
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/serial/pch_uart.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/tty/serial/pch_uart.c b/drivers/tty/serial/pch_uart.c index f0161d6ccc5c..2c5a3e4a17db 100644 --- a/drivers/tty/serial/pch_uart.c +++ b/drivers/tty/serial/pch_uart.c | |||
@@ -685,11 +685,12 @@ static int dma_push_rx(struct eg20t_port *priv, int size) | |||
685 | dev_warn(port->dev, "Rx overrun: dropping %u bytes\n", | 685 | dev_warn(port->dev, "Rx overrun: dropping %u bytes\n", |
686 | size - room); | 686 | size - room); |
687 | if (!room) | 687 | if (!room) |
688 | return room; | 688 | goto out; |
689 | 689 | ||
690 | tty_insert_flip_string(tport, sg_virt(&priv->sg_rx), size); | 690 | tty_insert_flip_string(tport, sg_virt(&priv->sg_rx), size); |
691 | 691 | ||
692 | port->icount.rx += room; | 692 | port->icount.rx += room; |
693 | out: | ||
693 | tty_kref_put(tty); | 694 | tty_kref_put(tty); |
694 | 695 | ||
695 | return room; | 696 | return room; |