serial_core: Update buffer overrun statistics.
authorCorbin Atkinson <corbinat@gmail.com>
Fri, 4 May 2012 17:35:10 +0000 (12:35 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 May 2012 21:41:54 +0000 (14:41 -0700)
commit642180871bc91afebb6ccf40d1615a7dd33699a3
tree10026174fd0c41dd5169160abfbf23928100a313
parentb1d679afd766cf425ba1cd2a0fd17451bd212f4a
serial_core: Update buffer overrun statistics.

Currently, serial drivers don't report buffer overruns. When a buffer overrun
occurs, tty_insert_flip_char returns 0, and no attempt is made to insert that
same character again (i.e. it is lost). This patch reports buffer overruns via
the buf_overrun field in the port's icount structure.

Signed-off-by: Corbin Atkinson <corbin.atkinson@ni.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial_core.c