diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-12-16 19:36:37 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-12-16 19:36:37 -0500 |
commit | 6a8c62f3e97fdf184fde60bc99155476e8e9cd55 (patch) | |
tree | 71b818d584f79baf1a192df65c758a592a63360d /drivers/tty/n_tty.c | |
parent | b46d0c46ccaa366a5bb8ac709fdf2bcaa76221fd (diff) | |
parent | 319e2e3f63c348a9b66db4667efa73178e18b17d (diff) |
Merge 3.13-rc4 into tty-next
We want the fixes in here as well.
Diffstat (limited to 'drivers/tty/n_tty.c')
-rw-r--r-- | drivers/tty/n_tty.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/tty/n_tty.c b/drivers/tty/n_tty.c index c7f8f7bc1423..fdc2ecde5ac2 100644 --- a/drivers/tty/n_tty.c +++ b/drivers/tty/n_tty.c | |||
@@ -812,7 +812,8 @@ static void process_echoes(struct tty_struct *tty) | |||
812 | struct n_tty_data *ldata = tty->disc_data; | 812 | struct n_tty_data *ldata = tty->disc_data; |
813 | size_t echoed; | 813 | size_t echoed; |
814 | 814 | ||
815 | if (!L_ECHO(tty) || ldata->echo_commit == ldata->echo_tail) | 815 | if ((!L_ECHO(tty) && !L_ECHONL(tty)) || |
816 | ldata->echo_commit == ldata->echo_tail) | ||
816 | return; | 817 | return; |
817 | 818 | ||
818 | mutex_lock(&ldata->output_lock); | 819 | mutex_lock(&ldata->output_lock); |
@@ -827,7 +828,8 @@ static void flush_echoes(struct tty_struct *tty) | |||
827 | { | 828 | { |
828 | struct n_tty_data *ldata = tty->disc_data; | 829 | struct n_tty_data *ldata = tty->disc_data; |
829 | 830 | ||
830 | if (!L_ECHO(tty) || ldata->echo_commit == ldata->echo_head) | 831 | if ((!L_ECHO(tty) && !L_ECHONL(tty)) || |
832 | ldata->echo_commit == ldata->echo_head) | ||
831 | return; | 833 | return; |
832 | 834 | ||
833 | mutex_lock(&ldata->output_lock); | 835 | mutex_lock(&ldata->output_lock); |