tty: fix chars_in_buffers
This function does not have an error return and returning an error is instead interpreted as having a lot of pending bytes. Reported by Jeff Harris who provided a list of some of the remaining offenders. Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
@@ -552,7 +552,7 @@ static int hvc_chars_in_buffer(struct tty_struct *tty)
|
||||
struct hvc_struct *hp = tty->driver_data;
|
||||
|
||||
if (!hp)
|
||||
return -1;
|
||||
return 0;
|
||||
return hp->n_outbuf;
|
||||
}
|
||||
|
||||
|
مرجع در شماره جدید
Block a user