]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
serial_core: Update buffer overrun statistics.
authorCorbin <corbinat@gmail.com>
Wed, 23 May 2012 14:37:31 +0000 (09:37 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Jul 2012 20:37:02 +0000 (13:37 -0700)
commit24a7d449b066bdba8b8b2486dc481f02043e0656
treeb7713aeb9e733559b4349f2cbad259fbdd4b9407
parent10e7d0980fd40cbbdaa57349dfbabf78f7e1b5d5
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@xxxxxx>
Cc: Jiri Slaby <jslaby@suse.cz>
Cc: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial_core.c