mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 00:43:12 +00:00
tty: incorrect test of echo_buf() result for ECHO_OP_START
test echo_buf() result for ECHO_OP_START Signed-off-by: Roel Kluin <[email protected]> Acked-by: Peter Hurley <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
fc811472c2
commit
c476f6584b
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user