]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit6f9b028a8fb9ba4cef0bd04ad4ce149c3f1e838f
treea4db4690a7a52b14444ee62919f0c5c646a49958
parent6d76bd2618535c581f1673047b8341fd291abc67
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