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, 27 Jan 2022 11:02:17 +0000 (12:02 +0100)
commit4ac1bcc94bfbcc461c49d124447d2e4fd113608a
treeb47f3f82325c6a9fa3153cd477d7f06a4fc37d4e
parentbeffe85935f3ea3e71d7cd4a1fa3bab77726b770
mxser: increase buf_overrun if tty_insert_flip_char() fails

[ Upstream commit eb68ac0462bffc2ceb63b3a76737d6c9f186e6de ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/tty/mxser.c