Skip to content

Commit

Permalink
tty: Fix hvc return
Browse files Browse the repository at this point in the history
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: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Alan Cox authored and Greg Kroah-Hartman committed Sep 17, 2012
1 parent 7ac3c93 commit d83114e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/tty/hvc/hvc_console.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d83114e

Please sign in to comment.