tty: Fix hvc return
commitd83114e9754cf5deb3424217ff2f10cace1428e3
authorAlan Cox <alan@linux.intel.com>
Mon, 17 Sep 2012 11:03:39 +0000 (17 12:03 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Sep 2012 11:45:29 +0000 (17 04:45 -0700)
tree55bcfb35785ec1c3f4ffed4797938c36ac567402
parent7ac3c93e5dd74486ca4f8f0b02ae55182658d2e5
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: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/hvc/hvc_console.c