Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c476f658 authored by Roel Kluin's avatar Roel Kluin Committed by Greg Kroah-Hartman
Browse files

tty: incorrect test of echo_buf() result for ECHO_OP_START



test echo_buf() result for ECHO_OP_START

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Acked-by: default avatarPeter Hurley <peter@hurleysoftware.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent fc811472
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -767,7 +767,7 @@ static size_t __process_echoes(struct tty_struct *tty)
	 * of echo overrun before the next commit), then discard enough
	 * data at the tail to prevent a subsequent overrun */
	while (ldata->echo_commit - tail >= ECHO_DISCARD_WATERMARK) {
		if (echo_buf(ldata, tail == ECHO_OP_START)) {
		if (echo_buf(ldata, tail) == ECHO_OP_START) {
			if (echo_buf(ldata, tail) == ECHO_OP_ERASE_TAB)
				tail += 3;
			else