Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325564
b: refs/heads/master
c: dabfb35
h: refs/heads/master
v: v3
  • Loading branch information
Corbin authored and Greg Kroah-Hartman committed Jun 12, 2012
1 parent 40b3418 commit e830ab9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7d0b066fbb912debc18e9556187f2d0313b8469e
refs/heads/master: dabfb351db690964f6c5f5729d4f407586f69a4f
6 changes: 4 additions & 2 deletions trunk/drivers/tty/serial/serial_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2527,14 +2527,16 @@ void uart_insert_char(struct uart_port *port, unsigned int status,
struct tty_struct *tty = port->state->port.tty;

if ((status & port->ignore_status_mask & ~overrun) == 0)
tty_insert_flip_char(tty, ch, flag);
if (tty_insert_flip_char(tty, ch, flag) == 0)
++port->icount.buf_overrun;

/*
* Overrun is special. Since it's reported immediately,
* it doesn't affect the current character.
*/
if (status & ~port->ignore_status_mask & overrun)
tty_insert_flip_char(tty, 0, TTY_OVERRUN);
if (tty_insert_flip_char(tty, 0, TTY_OVERRUN) == 0)
++port->icount.buf_overrun;
}
EXPORT_SYMBOL_GPL(uart_insert_char);

Expand Down

0 comments on commit e830ab9

Please sign in to comment.