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

Commit d83114e9 authored by Alan Cox's avatar Alan Cox Committed by Greg Kroah-Hartman
Browse files

tty: Fix hvc return



HVC returns a size of -1 bytes for the write room in some cases.
This is bogus and not handled by the tty layer at all.

Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7ac3c93e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -558,7 +558,7 @@ static int hvc_write_room(struct tty_struct *tty)
	struct hvc_struct *hp = tty->driver_data;

	if (!hp)
		return -1;
		return 0;

	return hp->outbuf_size - hp->n_outbuf;
}