diff options
Diffstat (limited to 'drivers/tty/n_tty.c')
-rw-r--r-- | drivers/tty/n_tty.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/tty/n_tty.c b/drivers/tty/n_tty.c index 900ebbe0a7ab..e9cfc77a1279 100644 --- a/drivers/tty/n_tty.c +++ b/drivers/tty/n_tty.c | |||
@@ -1546,10 +1546,11 @@ static void __receive_buf(struct tty_struct *tty, const unsigned char *cp, | |||
1546 | char *fp, int count) | 1546 | char *fp, int count) |
1547 | { | 1547 | { |
1548 | struct n_tty_data *ldata = tty->disc_data; | 1548 | struct n_tty_data *ldata = tty->disc_data; |
1549 | bool preops = I_ISTRIP(tty) || (I_IUCLC(tty) && L_IEXTEN(tty)); | ||
1549 | 1550 | ||
1550 | if (ldata->real_raw) | 1551 | if (ldata->real_raw) |
1551 | n_tty_receive_buf_real_raw(tty, cp, fp, count); | 1552 | n_tty_receive_buf_real_raw(tty, cp, fp, count); |
1552 | else if (ldata->raw) | 1553 | else if (ldata->raw || (L_EXTPROC(tty) && !preops)) |
1553 | n_tty_receive_buf_raw(tty, cp, fp, count); | 1554 | n_tty_receive_buf_raw(tty, cp, fp, count); |
1554 | else { | 1555 | else { |
1555 | char flag = TTY_NORMAL; | 1556 | char flag = TTY_NORMAL; |