]> git.baikalelectronics.ru Git - kernel.git/commit
n_tty: move echoctl check and clean up logic
authorJoe Peterson <joe@skyrush.com>
Wed, 9 Sep 2009 21:03:47 +0000 (15:03 -0600)
committerLive-CD User <linux@linux.site>
Sat, 19 Sep 2009 20:13:34 +0000 (13:13 -0700)
commit3cdf458e1e4c9a27669be6018e916d823940b494
tree18c71c8f09672ac097da5ea5a87e1c40a42e95b7
parent7902a43cc4c7f07648f964945ef4a7e26e529f43
n_tty: move echoctl check and clean up logic

Check L_ECHOCTL before insertting a character in the echo buffer
(rather than as the buffer is processed), to be more consistent with
when all other L_ flags are checked.  Also cleaned up the related logic.

Note that this and the previous patch ("n_tty: honor opost flag for echoes")
were verified together by the reporters of the bug that patch addresses
(http://bugs.linuxbase.org/show_bug.cgi?id=2692), and the test now passes.

Signed-off-by: Joe Peterson <joe@skyrush.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/n_tty.c