aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/tty/n_tty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/n_tty.c b/drivers/tty/n_tty.c
index cc57a3a6b02b..759604e57b24 100644
--- a/drivers/tty/n_tty.c
+++ b/drivers/tty/n_tty.c
@@ -2070,8 +2070,8 @@ static int canon_copy_from_read_buf(struct tty_struct *tty,
2070 2070
2071 size = N_TTY_BUF_SIZE - tail; 2071 size = N_TTY_BUF_SIZE - tail;
2072 n = eol - tail; 2072 n = eol - tail;
2073 if (n > 4096) 2073 if (n > N_TTY_BUF_SIZE)
2074 n += 4096; 2074 n += N_TTY_BUF_SIZE;
2075 n += found; 2075 n += found;
2076 c = n; 2076 c = n;
2077 2077