]> git.baikalelectronics.ru Git - kernel.git/commit
mxser: increase buf_overrun if tty_insert_flip_char() fails
authorJiri Slaby <jslaby@suse.cz>
Thu, 18 Nov 2021 07:31:22 +0000 (08:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Nov 2021 17:33:22 +0000 (18:33 +0100)
commit7813d1e74023a806ff482e1ca7a3bd23de545b73
treee617360a78fb5160e21472a28a84923f14c94fc5
parent78925c1635463373b19c9a2627ed527f1e904b04
mxser: increase buf_overrun if tty_insert_flip_char() fails

mxser doesn't increase port->icount.buf_overrun at all. Do so if overrun
happens, so that it can be read from the stats.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20211118073125.12283-17-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/mxser.c