]> git.baikalelectronics.ru Git - kernel.git/commit
n_tty: Reset lnext if canonical mode changes
authorPeter Hurley <peter@hurleysoftware.com>
Sat, 15 Jun 2013 13:14:27 +0000 (09:14 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Jul 2013 23:43:01 +0000 (16:43 -0700)
commit808f672177eb4d3b598bed7f90714f62a7135347
treea4db4690a7a52b14444ee62919f0c5c646a49958
parent4e6391fdf215a767102cbbe665cdef7651e2d73f
n_tty: Reset lnext if canonical mode changes

lnext escapes the next input character as a literal, and must
be reset when canonical mode changes (to avoid misinterpreting
a special character as a literal if canonical mode is changed
back again).

lnext is specifically not reset on a buffer flush so as to avoid
misinterpreting the next input character as a special character.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_tty.c