Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304229
b: refs/heads/master
c: 55e4b8b
h: refs/heads/master
i:
  304227: 59803ad
v: v3
  • Loading branch information
Greg Kroah-Hartman committed May 15, 2012
1 parent eb462b0 commit 2fe7ece
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: bdb595b4a906b8124d0dc5ff852f84302e2e7955
refs/heads/master: 55e4b8b416849753bd7eacd1f2ac3947fcf1c78e
6 changes: 2 additions & 4 deletions trunk/drivers/tty/serial/serial_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2527,16 +2527,14 @@ 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)
if (tty_insert_flip_char(tty, ch, flag) == 0)
++port->icount.buf_overrun;
tty_insert_flip_char(tty, ch, flag);

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

Expand Down

0 comments on commit 2fe7ece

Please sign in to comment.