|
@@ -444,7 +444,6 @@ receive_buf(struct tty_struct *tty, struct tty_buffer *head, int count)
|
|
if (count)
|
|
if (count)
|
|
disc->ops->receive_buf(tty, p, f, count);
|
|
disc->ops->receive_buf(tty, p, f, count);
|
|
}
|
|
}
|
|
- head->read += count;
|
|
|
|
return count;
|
|
return count;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -506,6 +505,7 @@ static void flush_to_ldisc(struct work_struct *work)
|
|
count = receive_buf(tty, head, count);
|
|
count = receive_buf(tty, head, count);
|
|
if (!count)
|
|
if (!count)
|
|
break;
|
|
break;
|
|
|
|
+ head->read += count;
|
|
}
|
|
}
|
|
|
|
|
|
mutex_unlock(&buf->lock);
|
|
mutex_unlock(&buf->lock);
|