Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304222
b: refs/heads/master
c: 6421808
h: refs/heads/master
v: v3
  • Loading branch information
Corbin Atkinson authored and Greg Kroah-Hartman committed May 9, 2012
1 parent 4328952 commit f6e7163
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: b1d679afd766cf425ba1cd2a0fd17451bd212f4a
refs/heads/master: 642180871bc91afebb6ccf40d1615a7dd33699a3
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 @@ -2526,14 +2526,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 f6e7163

Please sign in to comment.